forked from MDCPS/DamageAssessment_Backend
		
	Modified Documents api for InMemory Logic
This commit is contained in:
		| @ -7,19 +7,12 @@ namespace DamageAssesment.Api.Documents.Db | ||||
| { | ||||
|     public class DocumentDbContext : DbContext | ||||
|     { | ||||
|         private IConfiguration _Configuration { get; set; } | ||||
|         public DocumentDbContext(DbContextOptions options, IConfiguration configuration) : base(options) | ||||
|         public DocumentDbContext(DbContextOptions options) : base(options) | ||||
|         { | ||||
|             _Configuration = configuration; | ||||
|         } | ||||
|         public DbSet<Db.Document> Documents { get; set; } | ||||
|         public DbSet<Db.LinkType> LinkTypes { get; set; } | ||||
|         public DbSet<Db.DocumentsTranslation> DocumentsTranslations { get; set; } | ||||
|         protected override void OnConfiguring(DbContextOptionsBuilder options) | ||||
|         { | ||||
|             // connect to sql server with connection string from app settings | ||||
|             options.UseSqlServer(_Configuration.GetConnectionString("DocumentConnection")); | ||||
|         } | ||||
|         protected override void OnModelCreating(ModelBuilder modelBuilder) | ||||
|         { | ||||
|             base.OnModelCreating(modelBuilder); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user