Exemplo n.º 1
0
        public LockHeldMigrationsDbContext CreateDbContext(string[] args)
        {
            LockHeldEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

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