You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DatabaseContext.cs 666B

123456789101112131415161718
  1. namespace Diligent.WebAPI.Data;
  2. public class DatabaseContext : DbContext
  3. {
  4. public DbSet<InsuranceCompany> InsuranceCompanies { get; set; }
  5. public DbSet<Insurer> Insurers { get; set; }
  6. public DbSet<InsurancePolicy> InsurancePolicies { get; set; }
  7. public DbSet<WebhookSubscription> WebhookSubscriptions { get; set; }
  8. public DbSet<WebhookDefinition> WebhookDefinitions { get; set; }
  9. public DbSet<User> User { get; set; }
  10. public DatabaseContext(DbContextOptions<DatabaseContext> options) : base(options) { }
  11. protected override void OnModelCreating(ModelBuilder modelBuilder)
  12. {
  13. base.OnModelCreating(modelBuilder);
  14. }
  15. }