Microsoft.EntityFrameworkCore.Migrations
25 wrapped types. Load them with using { "Microsoft.EntityFrameworkCore.Migrations" }. Click a class to open it.
HistoryRepository class abstract
Microsoft.EntityFrameworkCore.Migrations.HistoryRepository · assembly Microsoft.EntityFrameworkCore.Relational
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
LockReleaseBehavior | LockReleaseBehavior | read | o.LockReleaseBehavior |
DefaultTableName | string | constant · static | o.DefaultTableName |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AcquireDatabaseLock | callMethod("AcquireDatabaseLock",[]) | IMigrationsDatabaseLock AcquireDatabaseLock() |
AcquireDatabaseLockAsync | AcquireDatabaseLockAsync(value)AcquireDatabaseLockAsync([ :cancellationToken = … ]) | Task<IMigrationsDatabaseLock> AcquireDatabaseLockAsync(CancellationToken cancellationToken = …) |
Create | callMethod("Create",[]) | void Create() |
CreateAsync | CreateAsync(value)CreateAsync([ :cancellationToken = … ]) | Task CreateAsync(CancellationToken cancellationToken = …) |
Exists | callMethod("Exists",[]) | bool Exists() |
ExistsAsync | ExistsAsync(value)ExistsAsync([ :cancellationToken = … ]) | Task<bool> ExistsAsync(CancellationToken cancellationToken = …) |
GetAppliedMigrations | callMethod("GetAppliedMigrations",[]) | IReadOnlyList<HistoryRow> GetAppliedMigrations() |
GetAppliedMigrationsAsync | GetAppliedMigrationsAsync(value)GetAppliedMigrationsAsync([ :cancellationToken = … ]) | Task<IReadOnlyList<HistoryRow>> GetAppliedMigrationsAsync(CancellationToken cancellationToken = …) |
GetBeginIfExistsScript | callMethod("GetBeginIfExistsScript",[p1]) | string GetBeginIfExistsScript(string migrationId) |
GetBeginIfNotExistsScript | callMethod("GetBeginIfNotExistsScript",[p1]) | string GetBeginIfNotExistsScript(string migrationId) |
GetCreateIfNotExistsScript | callMethod("GetCreateIfNotExistsScript",[]) | string GetCreateIfNotExistsScript() |
GetCreateScript | callMethod("GetCreateScript",[]) | string GetCreateScript() |
GetDeleteScript | callMethod("GetDeleteScript",[p1]) | string GetDeleteScript(string migrationId) |
GetEndIfScript | callMethod("GetEndIfScript",[]) | string GetEndIfScript() |
GetInsertScript | GetInsertScript(p1) | string GetInsertScript(HistoryRow row) |
HistoryRepositoryDependencies class sealed
Microsoft.EntityFrameworkCore.Migrations.HistoryRepositoryDependencies · assembly Microsoft.EntityFrameworkCore.Relational
Constructors
new HistoryRepositoryDependencies(IRelationalDatabaseCreator databaseCreator, IRawSqlCommandBuilder rawSqlCommandBuilder, IRelationalConnection connection, IDbContextOptions options, IMigrationsModelDiffer modelDiffer, IMigrationsSqlGenerator migrationsSqlGenerator, IMigrationCommandExecutor migrationCommandExecutor, ISqlGenerationHelper sqlGenerationHelper, IConventionSetBuilder conventionSetBuilder, ModelDependencies modelDependencies, IRelationalTypeMappingSource typeMappingSource, ICurrentDbContext currentContext, IModelRuntimeInitializer modelRuntimeInitializer, IRelationalCommandDiagnosticsLogger commandLogger, IDiagnosticsLogger<DbLoggerCategory.Migrations> migrationsLogger) |
Ring: new HistoryRepositoryDependencies(args) uses one constructor; the others are chosen by the parameter names: new HistoryRepositoryDependencies().@New([ :param = value ]) or dnNew("HistoryRepositoryDependencies",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
DatabaseCreator | IRelationalDatabaseCreator | read, write | o.DatabaseCreator o.DatabaseCreator = v |
RawSqlCommandBuilder | IRawSqlCommandBuilder | read, write | o.RawSqlCommandBuilder o.RawSqlCommandBuilder = v |
Connection | IRelationalConnection | read, write | o.Connection o.Connection = v |
Options | IDbContextOptions | read, write | o.Options o.Options = v |
ModelDiffer | IMigrationsModelDiffer | read, write | o.ModelDiffer o.ModelDiffer = v |
MigrationsSqlGenerator | IMigrationsSqlGenerator | read, write | o.MigrationsSqlGenerator o.MigrationsSqlGenerator = v |
SqlGenerationHelper | ISqlGenerationHelper | read, write | o.SqlGenerationHelper o.SqlGenerationHelper = v |
MigrationCommandExecutor | IMigrationCommandExecutor | read, write | o.MigrationCommandExecutor o.MigrationCommandExecutor = v |
ConventionSetBuilder | IConventionSetBuilder | read, write | o.ConventionSetBuilder o.ConventionSetBuilder = v |
ModelDependencies | ModelDependencies | read, write | o.ModelDependencies o.ModelDependencies = v |
TypeMappingSource | IRelationalTypeMappingSource | read, write | o.TypeMappingSource o.TypeMappingSource = v |
CurrentContext | ICurrentDbContext | read, write | o.CurrentContext o.CurrentContext = v |
ModelRuntimeInitializer | IModelRuntimeInitializer | read, write | o.ModelRuntimeInitializer o.ModelRuntimeInitializer = v |
CommandLogger | IRelationalCommandDiagnosticsLogger | read, write | o.CommandLogger o.CommandLogger = v |
MigrationsLogger | IDiagnosticsLogger<DbLoggerCategory.Migrations> | read, write | o.MigrationsLogger o.MigrationsLogger = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
<Clone>$ | callMethod("<Clone>$",[]) | HistoryRepositoryDependencies <Clone>$() |
Equals | Equals(p1) | bool Equals(object obj)bool Equals(HistoryRepositoryDependencies other) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
ToString | callMethod("ToString",[]) | string ToString() |
HistoryRow class
Microsoft.EntityFrameworkCore.Migrations.HistoryRow · assembly Microsoft.EntityFrameworkCore.Relational
Constructors
new HistoryRow(string migrationId, string productVersion) |
Ring: new HistoryRow(args) uses one constructor; the others are chosen by the parameter names: new HistoryRow().@New([ :param = value ]) or dnNew("HistoryRow",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
MigrationId | string | read | o.MigrationId |
ProductVersion | string | read | o.ProductVersion |
IHistoryRepository interface
Microsoft.EntityFrameworkCore.Migrations.IHistoryRepository · assembly Microsoft.EntityFrameworkCore.Relational
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
LockReleaseBehavior | LockReleaseBehavior | read | o.LockReleaseBehavior |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AcquireDatabaseLock | callMethod("AcquireDatabaseLock",[]) | IMigrationsDatabaseLock AcquireDatabaseLock() |
AcquireDatabaseLockAsync | AcquireDatabaseLockAsync(value)AcquireDatabaseLockAsync([ :cancellationToken = … ]) | Task<IMigrationsDatabaseLock> AcquireDatabaseLockAsync(CancellationToken cancellationToken = …) |
Create | callMethod("Create",[]) | void Create() |
CreateAsync | CreateAsync(value)CreateAsync([ :cancellationToken = … ]) | Task CreateAsync(CancellationToken cancellationToken = …) |
CreateIfNotExists | callMethod("CreateIfNotExists",[]) | bool CreateIfNotExists() |
CreateIfNotExistsAsync | CreateIfNotExistsAsync(value)CreateIfNotExistsAsync([ :cancellationToken = … ]) | Task<bool> CreateIfNotExistsAsync(CancellationToken cancellationToken = …) |
Exists | callMethod("Exists",[]) | bool Exists() |
ExistsAsync | ExistsAsync(value)ExistsAsync([ :cancellationToken = … ]) | Task<bool> ExistsAsync(CancellationToken cancellationToken = …) |
GetAppliedMigrations | callMethod("GetAppliedMigrations",[]) | IReadOnlyList<HistoryRow> GetAppliedMigrations() |
GetAppliedMigrationsAsync | GetAppliedMigrationsAsync(value)GetAppliedMigrationsAsync([ :cancellationToken = … ]) | Task<IReadOnlyList<HistoryRow>> GetAppliedMigrationsAsync(CancellationToken cancellationToken = …) |
GetBeginIfExistsScript | callMethod("GetBeginIfExistsScript",[p1]) | string GetBeginIfExistsScript(string migrationId) |
GetBeginIfNotExistsScript | callMethod("GetBeginIfNotExistsScript",[p1]) | string GetBeginIfNotExistsScript(string migrationId) |
GetCreateIfNotExistsScript | callMethod("GetCreateIfNotExistsScript",[]) | string GetCreateIfNotExistsScript() |
GetCreateScript | callMethod("GetCreateScript",[]) | string GetCreateScript() |
GetDeleteScript | callMethod("GetDeleteScript",[p1]) | string GetDeleteScript(string migrationId) |
GetEndIfScript | callMethod("GetEndIfScript",[]) | string GetEndIfScript() |
GetInsertScript | GetInsertScript(p1) | string GetInsertScript(HistoryRow row) |
IMigrationCommandExecutor interface
Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor · assembly Microsoft.EntityFrameworkCore.Relational
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ExecuteNonQuery | ExecuteNonQuery([ :migrationCommands = …, :connection = … ])ExecuteNonQuery([ :migrationCommands = …, :connection = …, :executionState = …, :commitTransaction = …, :isolationLevel = … ]) | void ExecuteNonQuery(IEnumerable<MigrationCommand> migrationCommands, IRelationalConnection connection)int ExecuteNonQuery(IReadOnlyList<MigrationCommand> migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, bool commitTransaction, IsolationLevel? isolationLevel = …) |
ExecuteNonQueryAsync | ExecuteNonQueryAsync([ :migrationCommands = …, :connection = …, :cancellationToken = … ])ExecuteNonQueryAsync([ :migrationCommands = …, :connection = …, :executionState = …, :commitTransaction = …, :isolationLevel = …, :cancellationToken = … ]) | Task ExecuteNonQueryAsync(IEnumerable<MigrationCommand> migrationCommands, IRelationalConnection connection, CancellationToken cancellationToken = …)Task<int> ExecuteNonQueryAsync(IReadOnlyList<MigrationCommand> migrationCommands, IRelationalConnection connection, MigrationExecutionState executionState, bool commitTransaction, IsolationLevel? isolationLevel = …, CancellationToken cancellationToken = …) |
IMigrationsAnnotationProvider interface
Microsoft.EntityFrameworkCore.Migrations.IMigrationsAnnotationProvider · assembly Microsoft.EntityFrameworkCore.Relational
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ForRemove | callMethod("ForRemove",[p1]) | IEnumerable<IAnnotation> ForRemove(IRelationalModel model)IEnumerable<IAnnotation> ForRemove(ITable table)IEnumerable<IAnnotation> ForRemove(IColumn column)IEnumerable<IAnnotation> ForRemove(IView view)IEnumerable<IAnnotation> ForRemove(IViewColumn column)IEnumerable<IAnnotation> ForRemove(IUniqueConstraint constraint)IEnumerable<IAnnotation> ForRemove(ITableIndex index)IEnumerable<IAnnotation> ForRemove(IForeignKeyConstraint foreignKey)IEnumerable<IAnnotation> ForRemove(ISequence sequence)IEnumerable<IAnnotation> ForRemove(ICheckConstraint checkConstraint) |
ForRename | callMethod("ForRename",[p1]) | IEnumerable<IAnnotation> ForRename(ITable table)IEnumerable<IAnnotation> ForRename(IColumn column)IEnumerable<IAnnotation> ForRename(ITableIndex index)IEnumerable<IAnnotation> ForRename(ISequence sequence) |
IMigrationsAssembly interface
Microsoft.EntityFrameworkCore.Migrations.IMigrationsAssembly · assembly Microsoft.EntityFrameworkCore.Relational
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Migrations | IReadOnlyDictionary<string, TypeInfo> | read | o.Migrations |
ModelSnapshot | ModelSnapshot | read | o.ModelSnapshot |
Assembly | Assembly | read | o.Assembly |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
CreateMigration | callMethod("CreateMigration",[p1,p2]) | Migration CreateMigration(TypeInfo migrationClass, string activeProvider) |
FindMigrationId | callMethod("FindMigrationId",[p1]) | string FindMigrationId(string nameOrId) |
IMigrationsDatabaseLock interface
Microsoft.EntityFrameworkCore.Migrations.IMigrationsDatabaseLock · assembly Microsoft.EntityFrameworkCore.Relational
Implements: IDisposable, IAsyncDisposable
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ReacquireIfNeeded | callMethod("ReacquireIfNeeded",[p1,p2]) | IMigrationsDatabaseLock ReacquireIfNeeded(bool connectionReopened, bool? transactionRestarted) |
ReacquireIfNeededAsync | ReacquireIfNeededAsync([ :connectionReopened = …, :transactionRestarted = …, :cancellationToken = … ]) | Task<IMigrationsDatabaseLock> ReacquireIfNeededAsync(bool connectionReopened, bool? transactionRestarted, CancellationToken cancellationToken = …) |
IMigrationsIdGenerator interface
Microsoft.EntityFrameworkCore.Migrations.IMigrationsIdGenerator · assembly Microsoft.EntityFrameworkCore.Relational
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GenerateId | callMethod("GenerateId",[p1]) | string GenerateId(string name) |
GetName | callMethod("GetName",[p1]) | string GetName(string id) |
IsValidId | callMethod("IsValidId",[p1]) | bool IsValidId(string value) |
IMigrationsModelDiffer interface
Microsoft.EntityFrameworkCore.Migrations.IMigrationsModelDiffer · assembly Microsoft.EntityFrameworkCore.Relational
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetDifferences | callMethod("GetDifferences",[p1,p2]) | IReadOnlyList<MigrationOperation> GetDifferences(IRelationalModel source, IRelationalModel target) |
HasDifferences | HasDifferences(p1,p2) | bool HasDifferences(IRelationalModel source, IRelationalModel target) |
IMigrationsSqlGenerator interface
Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator · assembly Microsoft.EntityFrameworkCore.Relational
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Generate | Generate([ :operations = …, :model = …, :options = … ]) | IReadOnlyList<MigrationCommand> Generate(IReadOnlyList<MigrationOperation> operations, IModel model = …, MigrationsSqlGenerationOptions options = …) |
IMigrator interface
Microsoft.EntityFrameworkCore.Migrations.IMigrator · assembly Microsoft.EntityFrameworkCore.Relational
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GenerateScript | callMethod("GenerateScript",[p1,p2,p3]) | string GenerateScript(string fromMigration = …, string toMigration = …, MigrationsSqlGenerationOptions options = …) |
HasPendingModelChanges | callMethod("HasPendingModelChanges",[]) | bool HasPendingModelChanges() |
Migrate | callMethod("Migrate",[p1]) | void Migrate(string targetMigration = …) |
MigrateAsync | MigrateAsync([ :targetMigration = …, :cancellationToken = … ]) | Task MigrateAsync(string targetMigration = …, CancellationToken cancellationToken = …) |
Migration class abstract
Microsoft.EntityFrameworkCore.Migrations.Migration · assembly Microsoft.EntityFrameworkCore.Relational
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
TargetModel | IModel | read | o.TargetModel |
UpOperations | IReadOnlyList<MigrationOperation> | read | o.UpOperations |
DownOperations | IReadOnlyList<MigrationOperation> | read | o.DownOperations |
ActiveProvider | string | read, write | o.ActiveProvider o.ActiveProvider = v |
InitialDatabase | string | constant · static | o.InitialDatabase |
MigrationAttribute class sealed · extends Attribute
Microsoft.EntityFrameworkCore.Migrations.MigrationAttribute · assembly Microsoft.EntityFrameworkCore.Relational
Constructors
new MigrationAttribute(string id) |
Ring: new MigrationAttribute(args) uses one constructor; the others are chosen by the parameter names: new MigrationAttribute().@New([ :param = value ]) or dnNew("MigrationAttribute",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Id | string | read | o.Id |
Members of the base class are inherited.
MigrationBuilder class
Microsoft.EntityFrameworkCore.Migrations.MigrationBuilder · assembly Microsoft.EntityFrameworkCore.Relational
Constructors
new MigrationBuilder(string activeProvider) |
Ring: new MigrationBuilder(args) uses one constructor; the others are chosen by the parameter names: new MigrationBuilder().@New([ :param = value ]) or dnNew("MigrationBuilder",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ActiveProvider | string | read | o.ActiveProvider |
Operations | List<MigrationOperation> | read | o.Operations |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AddCheckConstraint | AddCheckConstraint([ :name = …, :table = …, :sql = …, :schema = … ]) | OperationBuilder<AddCheckConstraintOperation> AddCheckConstraint(string name, string table, string sql, string schema = …) |
AddColumn | AddColumn([ :name = …, :table = …, :type = …, :unicode = …, :maxLength = …, :rowVersion = …, :schema = …, :nullable = …, :defaultValue = …, :defaultValueSql = …, :computedColumnSql = …, :fixedLength = …, :comment = …, :collation = …, :precision = …, :scale = …, :stored = … ]) | OperationBuilder<AddColumnOperation> AddColumn<T>(string name, string table, string type = …, bool? unicode = …, int? maxLength = …, bool rowVersion = …, string schema = …, bool nullable = …, object defaultValue = …, string defaultValueSql = …, string computedColumnSql = …, bool? fixedLength = …, string comment = …, string collation = …, int? precision = …, int? scale = …, bool? stored = …) |
AddForeignKey | AddForeignKey([ :name = …, :table = …, :column = …, :principalTable = …, :schema = …, :principalSchema = …, :principalColumn = …, :onUpdate = …, :onDelete = … ])AddForeignKey([ :name = …, :table = …, :columns = …, :principalTable = …, :schema = …, :principalSchema = …, :principalColumns = …, :onUpdate = …, :onDelete = … ]) | OperationBuilder<AddForeignKeyOperation> AddForeignKey(string name, string table, string column, string principalTable, string schema = …, string principalSchema = …, string principalColumn = …, ReferentialAction onUpdate = …, ReferentialAction onDelete = …)OperationBuilder<AddForeignKeyOperation> AddForeignKey(string name, string table, string[] columns, string principalTable, string schema = …, string principalSchema = …, string[] principalColumns = …, ReferentialAction onUpdate = …, ReferentialAction onDelete = …) |
AddPrimaryKey | AddPrimaryKey([ :name = …, :table = …, :column = …, :schema = … ])AddPrimaryKey([ :name = …, :table = …, :columns = …, :schema = … ]) | OperationBuilder<AddPrimaryKeyOperation> AddPrimaryKey(string name, string table, string column, string schema = …)OperationBuilder<AddPrimaryKeyOperation> AddPrimaryKey(string name, string table, string[] columns, string schema = …) |
AddUniqueConstraint | AddUniqueConstraint([ :name = …, :table = …, :column = …, :schema = … ])AddUniqueConstraint([ :name = …, :table = …, :columns = …, :schema = … ]) | OperationBuilder<AddUniqueConstraintOperation> AddUniqueConstraint(string name, string table, string column, string schema = …)OperationBuilder<AddUniqueConstraintOperation> AddUniqueConstraint(string name, string table, string[] columns, string schema = …) |
AlterColumn | AlterColumn([ :name = …, :table = …, :type = …, :unicode = …, :maxLength = …, :rowVersion = …, :schema = …, :nullable = …, :defaultValue = …, :defaultValueSql = …, :computedColumnSql = …, :oldClrType = …, :oldType = …, :oldUnicode = …, :oldMaxLength = …, :oldRowVersion = …, :oldNullable = …, :oldDefaultValue = …, :oldDefaultValueSql = …, :oldComputedColumnSql = …, :fixedLength = …, :oldFixedLength = …, :comment = …, :oldComment = …, :collation = …, :oldCollation = …, :precision = …, :oldPrecision = …, :scale = …, :oldScale = …, :stored = …, :oldStored = … ]) | AlterOperationBuilder<AlterColumnOperation> AlterColumn<T>(string name, string table, string type = …, bool? unicode = …, int? maxLength = …, bool rowVersion = …, string schema = …, bool nullable = …, object defaultValue = …, string defaultValueSql = …, string computedColumnSql = …, Type oldClrType = …, string oldType = …, bool? oldUnicode = …, int? oldMaxLength = …, bool oldRowVersion = …, bool oldNullable = …, object oldDefaultValue = …, string oldDefaultValueSql = …, string oldComputedColumnSql = …, bool? fixedLength = …, bool? oldFixedLength = …, string comment = …, string oldComment = …, string collation = …, string oldCollation = …, int? precision = …, int? oldPrecision = …, int? scale = …, int? oldScale = …, bool? stored = …, bool? oldStored = …) |
AlterDatabase | AlterDatabase([ :collation = …, :oldCollation = … ]) | AlterOperationBuilder<AlterDatabaseOperation> AlterDatabase(string collation = …, string oldCollation = …) |
AlterSequence | AlterSequence([ :name = …, :schema = …, :incrementBy = …, :minValue = …, :maxValue = …, :cyclic = …, :oldIncrementBy = …, :oldMinValue = …, :oldMaxValue = …, :oldCyclic = … ]) | AlterOperationBuilder<AlterSequenceOperation> AlterSequence(string name, string schema = …, int incrementBy = …, long? minValue = …, long? maxValue = …, bool cyclic = …, int oldIncrementBy = …, long? oldMinValue = …, long? oldMaxValue = …, bool oldCyclic = …) |
AlterTable | AlterTable([ :name = …, :schema = …, :comment = …, :oldComment = … ]) | AlterOperationBuilder<AlterTableOperation> AlterTable(string name, string schema = …, string comment = …, string oldComment = …) |
CreateCheckConstraint | CreateCheckConstraint([ :name = …, :table = …, :sql = …, :schema = … ]) | OperationBuilder<AddCheckConstraintOperation> CreateCheckConstraint(string name, string table, string sql, string schema = …) |
CreateIndex | CreateIndex([ :name = …, :table = …, :column = …, :schema = …, :unique = …, :filter = …, :descending = … ])CreateIndex([ :name = …, :table = …, :columns = …, :schema = …, :unique = …, :filter = …, :descending = … ]) | OperationBuilder<CreateIndexOperation> CreateIndex(string name, string table, string column, string schema = …, bool unique = …, string filter = …, bool[] descending = …)OperationBuilder<CreateIndexOperation> CreateIndex(string name, string table, string[] columns, string schema = …, bool unique = …, string filter = …, bool[] descending = …) |
CreateSequence | CreateSequence([ :name = …, :schema = …, :startValue = …, :incrementBy = …, :minValue = …, :maxValue = …, :cyclic = … ]) | OperationBuilder<CreateSequenceOperation> CreateSequence(string name, string schema = …, long startValue = …, int incrementBy = …, long? minValue = …, long? maxValue = …, bool cyclic = …)OperationBuilder<CreateSequenceOperation> CreateSequence<T>(string name, string schema = …, long startValue = …, int incrementBy = …, long? minValue = …, long? maxValue = …, bool cyclic = …) |
CreateTable | CreateTable([ :name = …, :columns = …, :schema = …, :constraints = …, :comment = … ]) | CreateTableBuilder<TColumns> CreateTable<TColumns>(string name, Func<ColumnsBuilder, TColumns> columns, string schema = …, Action<CreateTableBuilder<TColumns>> constraints = …, string comment = …) |
DeleteData | DeleteData([ :table = …, :keyColumn = …, :keyValue = …, :schema = … ])DeleteData([ :table = …, :keyColumns = …, :keyValues = …, :schema = … ])DeleteData([ :table = …, :keyColumn = …, :keyValues = …, :schema = … ])DeleteData([ :table = …, :keyColumn = …, :keyColumnType = …, :keyValue = …, :schema = … ]) | OperationBuilder<DeleteDataOperation> DeleteData(string table, string keyColumn, object keyValue, string schema = …)OperationBuilder<DeleteDataOperation> DeleteData(string table, string keyColumn, string keyColumnType, object keyValue, string schema = …)OperationBuilder<DeleteDataOperation> DeleteData(string table, string[] keyColumns, object[] keyValues, string schema = …)OperationBuilder<DeleteDataOperation> DeleteData(string table, string[] keyColumns, string[] keyColumnTypes, object[] keyValues, string schema = …)OperationBuilder<DeleteDataOperation> DeleteData(string table, string keyColumn, object[] keyValues, string schema = …)OperationBuilder<DeleteDataOperation> DeleteData(string table, string keyColumn, string keyColumnType, object[] keyValues, string schema = …)OperationBuilder<DeleteDataOperation> DeleteData(string table, string[] keyColumns, object[] keyValues, string schema = …)OperationBuilder<DeleteDataOperation> DeleteData(string table, string[] keyColumns, string[] keyColumnTypes, object[] keyValues, string schema = …) |
DropCheckConstraint | DropCheckConstraint([ :name = …, :table = …, :schema = … ]) | OperationBuilder<DropCheckConstraintOperation> DropCheckConstraint(string name, string table, string schema = …) |
DropColumn | DropColumn([ :name = …, :table = …, :schema = … ]) | OperationBuilder<DropColumnOperation> DropColumn(string name, string table, string schema = …) |
DropForeignKey | DropForeignKey([ :name = …, :table = …, :schema = … ]) | OperationBuilder<DropForeignKeyOperation> DropForeignKey(string name, string table, string schema = …) |
DropIndex | DropIndex([ :name = …, :table = …, :schema = … ]) | OperationBuilder<DropIndexOperation> DropIndex(string name, string table = …, string schema = …) |
DropPrimaryKey | DropPrimaryKey([ :name = …, :table = …, :schema = … ]) | OperationBuilder<DropPrimaryKeyOperation> DropPrimaryKey(string name, string table, string schema = …) |
DropSchema | callMethod("DropSchema",[p1]) | OperationBuilder<DropSchemaOperation> DropSchema(string name) |
DropSequence | DropSequence([ :name = …, :schema = … ]) | OperationBuilder<DropSequenceOperation> DropSequence(string name, string schema = …) |
DropTable | DropTable([ :name = …, :schema = … ]) | OperationBuilder<DropTableOperation> DropTable(string name, string schema = …) |
DropUniqueConstraint | DropUniqueConstraint([ :name = …, :table = …, :schema = … ]) | OperationBuilder<DropUniqueConstraintOperation> DropUniqueConstraint(string name, string table, string schema = …) |
EnsureSchema | callMethod("EnsureSchema",[p1]) | OperationBuilder<EnsureSchemaOperation> EnsureSchema(string name) |
Equals | Equals(p1) | bool Equals(object obj) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
InsertData | InsertData([ :table = …, :column = …, :value = …, :schema = … ])InsertData([ :table = …, :columns = …, :values = …, :schema = … ])InsertData([ :table = …, :column = …, :values = …, :schema = … ])InsertData([ :table = …, :column = …, :columnType = …, :value = …, :schema = … ]) | OperationBuilder<InsertDataOperation> InsertData(string table, string column, object value, string schema = …)OperationBuilder<InsertDataOperation> InsertData(string table, string column, string columnType, object value, string schema = …)OperationBuilder<InsertDataOperation> InsertData(string table, string[] columns, object[] values, string schema = …)OperationBuilder<InsertDataOperation> InsertData(string table, string[] columns, string[] columnTypes, object[] values, string schema = …)OperationBuilder<InsertDataOperation> InsertData(string table, string column, object[] values, string schema = …)OperationBuilder<InsertDataOperation> InsertData(string table, string column, string columnType, object[] values, string schema = …)OperationBuilder<InsertDataOperation> InsertData(string table, string[] columns, object[] values, string schema = …)OperationBuilder<InsertDataOperation> InsertData(string table, string[] columns, string[] columnTypes, object[] values, string schema = …) |
RenameColumn | RenameColumn([ :name = …, :table = …, :newName = …, :schema = … ]) | OperationBuilder<RenameColumnOperation> RenameColumn(string name, string table, string newName, string schema = …) |
RenameIndex | RenameIndex([ :name = …, :newName = …, :table = …, :schema = … ]) | OperationBuilder<RenameIndexOperation> RenameIndex(string name, string newName, string table = …, string schema = …) |
RenameSequence | RenameSequence([ :name = …, :schema = …, :newName = …, :newSchema = … ]) | OperationBuilder<RenameSequenceOperation> RenameSequence(string name, string schema = …, string newName = …, string newSchema = …) |
RenameTable | RenameTable([ :name = …, :schema = …, :newName = …, :newSchema = … ]) | OperationBuilder<RenameTableOperation> RenameTable(string name, string schema = …, string newName = …, string newSchema = …) |
RestartSequence | RestartSequence([ :name = …, :startValue = …, :schema = … ]) | OperationBuilder<RestartSequenceOperation> RestartSequence(string name, long? startValue = …, string schema = …) |
Sql | Sql([ :sql = …, :suppressTransaction = … ]) | OperationBuilder<SqlOperation> Sql(string sql, bool suppressTransaction = …) |
ToString | callMethod("ToString",[]) | string ToString() |
UpdateData | UpdateData([ :table = …, :keyColumn = …, :keyValue = …, :column = …, :value = …, :schema = … ])UpdateData([ :table = …, :keyColumn = …, :keyValue = …, :columns = …, :values = …, :schema = … ])UpdateData([ :table = …, :keyColumns = …, :keyValues = …, :column = …, :value = …, :schema = … ])UpdateData([ :table = …, :keyColumns = …, :keyValues = …, :columns = …, :values = …, :schema = … ]) | OperationBuilder<UpdateDataOperation> UpdateData(string table, string keyColumn, object keyValue, string column, object value, string schema = …)OperationBuilder<UpdateDataOperation> UpdateData(string table, string keyColumn, object keyValue, string[] columns, object[] values, string schema = …)OperationBuilder<UpdateDataOperation> UpdateData(string table, string[] keyColumns, object[] keyValues, string column, object value, string schema = …)OperationBuilder<UpdateDataOperation> UpdateData(string table, string[] keyColumns, object[] keyValues, string[] columns, object[] values, string schema = …)OperationBuilder<UpdateDataOperation> UpdateData(string table, string[] keyColumns, string[] keyColumnTypes, object[] keyValues, string[] columns, string[] columnTypes, object[] values, string schema = …)OperationBuilder<UpdateDataOperation> UpdateData(string table, string keyColumn, object[] keyValues, string column, object[] values, string schema = …)OperationBuilder<UpdateDataOperation> UpdateData(string table, string keyColumn, object[] keyValues, string[] columns, object[] values, string schema = …)OperationBuilder<UpdateDataOperation> UpdateData(string table, string[] keyColumns, object[] keyValues, string column, object[] values, string schema = …)OperationBuilder<UpdateDataOperation> UpdateData(string table, string[] keyColumns, object[] keyValues, string[] columns, object[] values, string schema = …)OperationBuilder<UpdateDataOperation> UpdateData(string table, string[] keyColumns, string[] keyColumnTypes, object[] keyValues, string[] columns, string[] columnTypes, object[] values, string schema = …) |
MigrationCommand class
Microsoft.EntityFrameworkCore.Migrations.MigrationCommand · assembly Microsoft.EntityFrameworkCore.Relational
Constructors
new MigrationCommand(IRelationalCommand relationalCommand, DbContext context, IRelationalCommandDiagnosticsLogger logger, bool transactionSuppressed = …) |
Ring: new MigrationCommand(args) uses one constructor; the others are chosen by the parameter names: new MigrationCommand().@New([ :param = value ]) or dnNew("MigrationCommand",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
TransactionSuppressed | bool | read | o.TransactionSuppressed |
CommandText | string | read | o.CommandText |
CommandLogger | IRelationalCommandDiagnosticsLogger | read | o.CommandLogger |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ExecuteNonQuery | callMethod("ExecuteNonQuery",[p1,p2]) | int ExecuteNonQuery(IRelationalConnection connection, IReadOnlyDictionary<string, object> parameterValues = …) |
ExecuteNonQueryAsync | ExecuteNonQueryAsync([ :connection = …, :parameterValues = …, :cancellationToken = … ]) | Task<int> ExecuteNonQueryAsync(IRelationalConnection connection, IReadOnlyDictionary<string, object> parameterValues = …, CancellationToken cancellationToken = …) |
MigrationCommandListBuilder class
Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder · assembly Microsoft.EntityFrameworkCore.Relational
Constructors
new MigrationCommandListBuilder(MigrationsSqlGeneratorDependencies dependencies) |
Ring: new MigrationCommandListBuilder(args) uses one constructor; the others are chosen by the parameter names: new MigrationCommandListBuilder().@New([ :param = value ]) or dnNew("MigrationCommandListBuilder",[ :param = value ]).
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Append | callMethod("Append",[p1]) | MigrationCommandListBuilder Append(string o) |
AppendLine | AppendLine(NULL)AppendLine(value)AppendLine([ :value = … ]) | MigrationCommandListBuilder AppendLine()MigrationCommandListBuilder AppendLine(string value) |
AppendLines | callMethod("AppendLines",[p1]) | MigrationCommandListBuilder AppendLines(string value) |
DecrementIndent | callMethod("DecrementIndent",[]) | MigrationCommandListBuilder DecrementIndent() |
EndCommand | EndCommand(value)EndCommand([ :suppressTransaction = … ]) | MigrationCommandListBuilder EndCommand(bool suppressTransaction = …) |
GetCommandList | callMethod("GetCommandList",[]) | IReadOnlyList<MigrationCommand> GetCommandList() |
IncrementIndent | callMethod("IncrementIndent",[]) | MigrationCommandListBuilder IncrementIndent() |
Indent | callMethod("Indent",[]) | IDisposable Indent() |
MigrationExecutionState class sealed
Microsoft.EntityFrameworkCore.Migrations.MigrationExecutionState · assembly Microsoft.EntityFrameworkCore.Relational
Constructors
new MigrationExecutionState() |
Ring: new MigrationExecutionState(args) uses one constructor; the others are chosen by the parameter names: new MigrationExecutionState().@New([ :param = value ]) or dnNew("MigrationExecutionState",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
LastCommittedCommandIndex | int | read, write | o.LastCommittedCommandIndex o.LastCommittedCommandIndex = v |
CurrentMigrationId | string | read, write | o.CurrentMigrationId o.CurrentMigrationId = v |
AnyOperationPerformed | bool | read, write | o.AnyOperationPerformed o.AnyOperationPerformed = v |
DatabaseLock | IMigrationsDatabaseLock | read, write | o.DatabaseLock o.DatabaseLock = v |
Transaction | IDbContextTransaction | read, write | o.Transaction o.Transaction = v |
MigrationsAnnotationProvider class
Microsoft.EntityFrameworkCore.Migrations.MigrationsAnnotationProvider · assembly Microsoft.EntityFrameworkCore.Relational
Constructors
new MigrationsAnnotationProvider(MigrationsAnnotationProviderDependencies dependencies) |
Ring: new MigrationsAnnotationProvider(args) uses one constructor; the others are chosen by the parameter names: new MigrationsAnnotationProvider().@New([ :param = value ]) or dnNew("MigrationsAnnotationProvider",[ :param = value ]).
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
ForRemove | callMethod("ForRemove",[p1]) | IEnumerable<IAnnotation> ForRemove(IRelationalModel model)IEnumerable<IAnnotation> ForRemove(ITable table)IEnumerable<IAnnotation> ForRemove(IColumn column)IEnumerable<IAnnotation> ForRemove(IView view)IEnumerable<IAnnotation> ForRemove(IViewColumn column)IEnumerable<IAnnotation> ForRemove(IUniqueConstraint constraint)IEnumerable<IAnnotation> ForRemove(ITableIndex index)IEnumerable<IAnnotation> ForRemove(IForeignKeyConstraint foreignKey)IEnumerable<IAnnotation> ForRemove(ISequence sequence)IEnumerable<IAnnotation> ForRemove(ICheckConstraint checkConstraint) |
ForRename | callMethod("ForRename",[p1]) | IEnumerable<IAnnotation> ForRename(ITable table)IEnumerable<IAnnotation> ForRename(IColumn column)IEnumerable<IAnnotation> ForRename(ITableIndex index)IEnumerable<IAnnotation> ForRename(ISequence sequence) |
MigrationsAnnotationProviderDependencies class sealed
Microsoft.EntityFrameworkCore.Migrations.MigrationsAnnotationProviderDependencies · assembly Microsoft.EntityFrameworkCore.Relational
Constructors
new MigrationsAnnotationProviderDependencies() |
Ring: new MigrationsAnnotationProviderDependencies(args) uses one constructor; the others are chosen by the parameter names: new MigrationsAnnotationProviderDependencies().@New([ :param = value ]) or dnNew("MigrationsAnnotationProviderDependencies",[ :param = value ]).
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
<Clone>$ | callMethod("<Clone>$",[]) | MigrationsAnnotationProviderDependencies <Clone>$() |
Equals | Equals(p1) | bool Equals(object obj)bool Equals(MigrationsAnnotationProviderDependencies other) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
ToString | callMethod("ToString",[]) | string ToString() |
MigrationsAssemblyExtensions class static
Microsoft.EntityFrameworkCore.Migrations.MigrationsAssemblyExtensions · assembly Microsoft.EntityFrameworkCore.Relational
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetMigrationId | GetMigrationId(p1,p2) | static string GetMigrationId(IMigrationsAssembly assembly, string nameOrId) |
MigrationsSqlGenerator class
Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerator · assembly Microsoft.EntityFrameworkCore.Relational
Constructors
new MigrationsSqlGenerator(MigrationsSqlGeneratorDependencies dependencies) |
Ring: new MigrationsSqlGenerator(args) uses one constructor; the others are chosen by the parameter names: new MigrationsSqlGenerator().@New([ :param = value ]) or dnNew("MigrationsSqlGenerator",[ :param = value ]).
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Generate | Generate([ :operations = …, :model = …, :options = … ]) | IReadOnlyList<MigrationCommand> Generate(IReadOnlyList<MigrationOperation> operations, IModel model = …, MigrationsSqlGenerationOptions options = …) |
MigrationsSqlGeneratorDependencies class sealed
Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGeneratorDependencies · assembly Microsoft.EntityFrameworkCore.Relational
Constructors
new MigrationsSqlGeneratorDependencies(IRelationalCommandBuilderFactory commandBuilderFactory, IUpdateSqlGenerator updateSqlGenerator, ISqlGenerationHelper sqlGenerationHelper, IRelationalTypeMappingSource typeMappingSource, ICurrentDbContext currentContext, IModificationCommandFactory modificationCommandFactory, ILoggingOptions loggingOptions, IRelationalCommandDiagnosticsLogger logger, IDiagnosticsLogger<DbLoggerCategory.Migrations> migrationsLogger) |
Ring: new MigrationsSqlGeneratorDependencies(args) uses one constructor; the others are chosen by the parameter names: new MigrationsSqlGeneratorDependencies().@New([ :param = value ]) or dnNew("MigrationsSqlGeneratorDependencies",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
CommandBuilderFactory | IRelationalCommandBuilderFactory | read, write | o.CommandBuilderFactory o.CommandBuilderFactory = v |
UpdateSqlGenerator | IUpdateSqlGenerator | read, write | o.UpdateSqlGenerator o.UpdateSqlGenerator = v |
SqlGenerationHelper | ISqlGenerationHelper | read, write | o.SqlGenerationHelper o.SqlGenerationHelper = v |
TypeMappingSource | IRelationalTypeMappingSource | read, write | o.TypeMappingSource o.TypeMappingSource = v |
CurrentContext | ICurrentDbContext | read, write | o.CurrentContext o.CurrentContext = v |
ModificationCommandFactory | IModificationCommandFactory | read, write | o.ModificationCommandFactory o.ModificationCommandFactory = v |
LoggingOptions | ILoggingOptions | read, write | o.LoggingOptions o.LoggingOptions = v |
Logger | IRelationalCommandDiagnosticsLogger | read, write | o.Logger o.Logger = v |
MigrationsLogger | IDiagnosticsLogger<DbLoggerCategory.Migrations> | read, write | o.MigrationsLogger o.MigrationsLogger = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
<Clone>$ | callMethod("<Clone>$",[]) | MigrationsSqlGeneratorDependencies <Clone>$() |
Equals | Equals(p1) | bool Equals(object obj)bool Equals(MigrationsSqlGeneratorDependencies other) |
GetHashCode | callMethod("GetHashCode",[]) | int GetHashCode() |
ToString | callMethod("ToString",[]) | string ToString() |
SqliteMigrationBuilderExtensions class static
Microsoft.EntityFrameworkCore.Migrations.SqliteMigrationBuilderExtensions · assembly Microsoft.EntityFrameworkCore.Sqlite
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
IsSqlite | IsSqlite(p1) | static bool IsSqlite(MigrationBuilder migrationBuilder) |
SqliteMigrationsSqlGenerator class · extends MigrationsSqlGenerator
Microsoft.EntityFrameworkCore.Migrations.SqliteMigrationsSqlGenerator · assembly Microsoft.EntityFrameworkCore.Sqlite
Constructors
new SqliteMigrationsSqlGenerator(MigrationsSqlGeneratorDependencies dependencies, IRelationalAnnotationProvider migrationsAnnotations) |
Ring: new SqliteMigrationsSqlGenerator(args) uses one constructor; the others are chosen by the parameter names: new SqliteMigrationsSqlGenerator().@New([ :param = value ]) or dnNew("SqliteMigrationsSqlGenerator",[ :param = value ]).
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Generate | Generate([ :operations = …, :model = …, :options = … ]) | IReadOnlyList<MigrationCommand> Generate(IReadOnlyList<MigrationOperation> operations, IModel model = …, MigrationsSqlGenerationOptions options = …) |
Members of the base class are inherited.