public IDSReferenceTokenMigrationsDbContext CreateDbContext(string[] args)
        {
            IDSReferenceTokenEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new IDSReferenceTokenMigrationsDbContext(builder.Options));
        }
示例#2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     IDSReferenceTokenEfCoreEntityExtensionMappings.Configure();
 }