CreateTableBuilder<TColumns> CreateTableBuilder(Of TColumns) Class

Definition

public class CreateTableBuilder<TColumns> : OperationBuilder<CreateTableOperation>, IInfrastructure<CreateTableOperation>
Public Class CreateTableBuilder(Of TColumns)
    Inherits OperationBuilder(Of CreateTableOperation)
    Implements IInfrastructure(Of CreateTableOperation)
Type Parameters
TColumns
Inheritance
System.ObjectSystem.Object
CreateTableBuilder<TColumns>CreateTableBuilder(Of TColumns)
Implements

Constructors

CreateTableBuilder(CreateTableOperation, IReadOnlyDictionary) CreateTableBuilder(CreateTableOperation, IReadOnlyDictionary(Of PropertyInfo, AddColumnOperation))

public CreateTableBuilder(CreateTableOperation operation, IReadOnlyDictionary<PropertyInfo, AddColumnOperation> columnMap)
Public Sub New(operation As CreateTableOperation, columnMap As IReadOnlyDictionary(Of PropertyInfo, AddColumnOperation))
Parameters
columnMap
System.Collections.Generic.IReadOnlyDictionary<System.Reflection.PropertyInfo, AddColumnOperation> System.Collections.Generic.IReadOnlyDictionary(Of System.Reflection.PropertyInfo, AddColumnOperation)

Methods

Annotation(String, Object) Annotation(String, Object)

public virtual CreateTableBuilder<TColumns> Annotation(string name, object value)
Public Overridable Function Annotation(name As String, value As Object) As CreateTableBuilder(Of TColumns)
Parameters
name
System.String System.String
value
System.Object System.Object
Returns
CreateTableBuilder<TColumns> CreateTableBuilder(Of TColumns)

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

ForeignKey(String, Expression<>>, String, String, String, ReferentialAction, ReferentialAction) ForeignKey(String, Expression(Of Func(Of TColumns, Object)), String, String, String, ReferentialAction, ReferentialAction)

public virtual OperationBuilder<AddForeignKeyOperation> ForeignKey(string name, Expression<Func<TColumns, object>> column, string principalTable, string principalColumn, string principalSchema = null, ReferentialAction onUpdate = ReferentialAction.NoAction, ReferentialAction onDelete = ReferentialAction.NoAction)
Public Overridable Function ForeignKey(name As String, column As Expression(Of Func(Of TColumns, Object)), principalTable As String, principalColumn As String, principalSchema As String = Nothing, onUpdate As ReferentialAction = ReferentialAction.NoAction, onDelete As ReferentialAction = ReferentialAction.NoAction) As OperationBuilder(Of AddForeignKeyOperation)
Parameters
name
System.String System.String
column
System.Linq.Expressions.Expression<System.Func<TColumns, System.Object>> System.Linq.Expressions.Expression(Of System.Func(Of TColumns, System.Object))
principalTable
System.String System.String
principalColumn
System.String System.String
principalSchema
System.String System.String
Returns

ForeignKey(String, Expression<>>, String, String[], String, ReferentialAction, ReferentialAction) ForeignKey(String, Expression(Of Func(Of TColumns, Object)), String, String(), String, ReferentialAction, ReferentialAction)

public virtual OperationBuilder<AddForeignKeyOperation> ForeignKey(string name, Expression<Func<TColumns, object>> columns, string principalTable, string[] principalColumns, string principalSchema = null, ReferentialAction onUpdate = ReferentialAction.NoAction, ReferentialAction onDelete = ReferentialAction.NoAction)
Public Overridable Function ForeignKey(name As String, columns As Expression(Of Func(Of TColumns, Object)), principalTable As String, principalColumns As String(), principalSchema As String = Nothing, onUpdate As ReferentialAction = ReferentialAction.NoAction, onDelete As ReferentialAction = ReferentialAction.NoAction) As OperationBuilder(Of AddForeignKeyOperation)
Parameters
name
System.String System.String
columns
System.Linq.Expressions.Expression<System.Func<TColumns, System.Object>> System.Linq.Expressions.Expression(Of System.Func(Of TColumns, System.Object))
principalTable
System.String System.String
principalColumns
System.String[] System.String()
principalSchema
System.String System.String
Returns

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

IInfrastructure.Instance Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure.Instance

Inherited from Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation>

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

Operation Operation

Inherited from Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.CreateTableOperation>

PrimaryKey(String, Expression<>>) PrimaryKey(String, Expression(Of Func(Of TColumns, Object)))

public virtual OperationBuilder<AddPrimaryKeyOperation> PrimaryKey(string name, Expression<Func<TColumns, object>> columns)
Public Overridable Function PrimaryKey(name As String, columns As Expression(Of Func(Of TColumns, Object))) As OperationBuilder(Of AddPrimaryKeyOperation)
Parameters
name
System.String System.String
columns
System.Linq.Expressions.Expression<System.Func<TColumns, System.Object>> System.Linq.Expressions.Expression(Of System.Func(Of TColumns, System.Object))
Returns

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object

UniqueConstraint(String, Expression<>>) UniqueConstraint(String, Expression(Of Func(Of TColumns, Object)))

public virtual OperationBuilder<AddUniqueConstraintOperation> UniqueConstraint(string name, Expression<Func<TColumns, object>> columns)
Public Overridable Function UniqueConstraint(name As String, columns As Expression(Of Func(Of TColumns, Object))) As OperationBuilder(Of AddUniqueConstraintOperation)
Parameters
name
System.String System.String
columns
System.Linq.Expressions.Expression<System.Func<TColumns, System.Object>> System.Linq.Expressions.Expression(Of System.Func(Of TColumns, System.Object))
Returns