Class AlterOperationBuilder<TOperation>
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
A builder for IAlterMigrationOperation operations.
public class AlterOperationBuilder<TOperation> : OperationBuilder<TOperation>, IInfrastructure<TOperation> where TOperation : MigrationOperation, IAlterMigrationOperation
Type Parameters
TOperation
The operation type to build.
- Inheritance
-
OperationBuilder<TOperation>AlterOperationBuilder<TOperation>
- Implements
-
IInfrastructure<TOperation>
- Inherited Members
Constructors
AlterOperationBuilder(TOperation)
Constructs a builder for the given MigrationOperation.
public AlterOperationBuilder(TOperation operation)
Parameters
operation
TOperationThe operation.
Methods
Annotation(string, object)
Annotates the MigrationOperation with the given name/value pair.
public virtual AlterOperationBuilder<TOperation> Annotation(string name, object value)
Parameters
Returns
- AlterOperationBuilder<TOperation>
The same builder so that multiple calls can be chained.
OldAnnotation(string, object)
Annotates the MigrationOperation with the given name/value pair as an annotation that was present before the alteration.
public virtual AlterOperationBuilder<TOperation> OldAnnotation(string name, object value)
Parameters
Returns
- AlterOperationBuilder<TOperation>
The same builder so that multiple calls can be chained.