using Microsoft.AspNetCore.Identity.EntityFrameworkCore; using Microsoft.EntityFrameworkCore; namespace IoTSharp.Gateways.Data { public class ApplicationDbContext : IdentityDbContext { public ApplicationDbContext(DbContextOptions options) : base(options) { if (Database.GetPendingMigrations().Count() > 0) { Database.Migrate(); } } public DbSet Clients { get; set; } public DbSet ModbusMappings { get; set; } public DbSet OPCUAMappings { get; set; } } }