Table of Contents

Class AlterOperationBuilder<TOperation>

Namespace
Microsoft.EntityFrameworkCore.Migrations.Operations.Builders
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 TOperation

The operation.

Methods

Annotation(string, object)

Annotates the MigrationOperation with the given name/value pair.

public virtual AlterOperationBuilder<TOperation> Annotation(string name, object value)

Parameters

name string

The annotation name.

value object

The annotation value.

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

name string

The annotation name.

value object

The annotation value.

Returns

AlterOperationBuilder<TOperation>

The same builder so that multiple calls can be chained.