示例#1
0
        public AuthCenterMigrationsDbContext CreateDbContext(string[] args)
        {
            AuthCenterEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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