Esempio n. 1
0
        public SaleManagementMigrationsDbContext CreateDbContext(string[] args)
        {
            SaleManagementEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new SaleManagementMigrationsDbContext(builder.Options));
        }
Esempio n. 2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     SaleManagementEfCoreEntityExtensionMappings.Configure();
 }