Beispiel #1
0
        public TmdbMoviesMigrationsDbContext CreateDbContext(string[] args)
        {
            TmdbMoviesEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new TmdbMoviesMigrationsDbContext(builder.Options));
        }
Beispiel #2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     TmdbMoviesEfCoreEntityExtensionMappings.Configure();
 }