Ejemplo n.º 1
0
        public DataProtectionMigrationsDbContext CreateDbContext(string[] args)
        {
            DataProtectionEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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