private void SetSchema(IReadOnlyList <MigrationOperation> operations, [AllowNull] IDbDefaultSchema schema) { if (schema?.Schema != null) { _schemaSetter.SetSchema(operations, schema.Schema); } }
private Migration CreateInstance(TypeInfo migrationClass, IDbDefaultSchema schema, string activeProvider) { var migration = (Migration)ActivatorUtilities.CreateInstance(_serviceProvider, migrationClass.AsType(), schema); migration.ActiveProvider = activeProvider; return(migration); }
/// <inheritdoc /> protected override TestDbContext CreateContext(DbContextOptions <TestDbContext> options, IDbDefaultSchema schema) { var ctx = base.CreateContext(options, schema); ctx.ConfigureModel = ConfigureModel; return(ctx); }