コード例 #1
0
 /// <inheritdoc />
 public SeedAwareMigrationsAssembly(
     ICurrentDbContext currentContext,
     IDbContextOptions options,
     IMigrationsIdGenerator idGenerator,
     IDiagnosticsLogger <DbLoggerCategory.Migrations> logger)
     : base(currentContext, options, idGenerator, logger)
 {
     _env         = currentContext.Context.GetService <IHostingEnvironment>();
     _seedFactory = currentContext.Context.GetService <IMigrationSeedFactory>();
 }
コード例 #2
0
 /// <inheritdoc />
 public SeedAwareMigrationsAssembly(
     ICurrentDbContext currentContext,
     IDbContextOptions options,
     IMigrationsIdGenerator idGenerator,
     IDiagnosticsLogger <DbLoggerCategory.Migrations> logger)
     : base(currentContext, options, idGenerator, logger)
 {
     _seedSpecs   = currentContext.Context.GetService <IMigrationSeedsApplicabilitySpecification>();
     _seedFactory = currentContext.Context.GetService <IMigrationSeedFactory>();
 }