Пример #1
0
        public SkylineMigrationsDbContext CreateDbContext(string[] args)
        {
            SkylineEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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