예제 #1
0
        public IssueTrackingMigrationsDbContext CreateDbContext(string[] args)
        {
            IssueTrackingEfCoreEntityExtensionMappings.Configure();

            var configuration = BuildConfiguration();

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

            return(new IssueTrackingMigrationsDbContext(builder.Options));
        }
예제 #2
0
 public override void PreConfigureServices(ServiceConfigurationContext context)
 {
     IssueTrackingEfCoreEntityExtensionMappings.Configure();
 }