Exemple #1
0
        public SureCompliMigrationsDbContext CreateDbContext(string[] args)
        {
            SureCompliEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

            var builder = new DbContextOptionsBuilder <SureCompliMigrationsDbContext>()
                          .UseSqlServer(configuration.GetConnectionString("Default"));

            return(new SureCompliMigrationsDbContext(builder.Options));
        }
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     SureCompliEfCoreEntityExtensionMappings.Configure();
 }