CreateTableBuilder<TColumns> CreateTableBuilder(Of TColumns) Class

Syntax

Declaration

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 Hierarchy

Inherited Members

Operation,
Operation,
IInfrastructure<CreateTableOperation>.Instance,
Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<TOperation>.Instance,
ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Methods summary

Constructors

  • CreateTableBuilder(CreateTableOperation, IReadOnlyDictionary<PropertyInfo, AddColumnOperation>)
    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

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

  • ForeignKey(String, Expression<Func<TColumns, Object>>, 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<TDelegate><System.Func<T, TResult><TColumns, System.Object>>
      System.Linq.Expressions.Expression<TDelegate>(Of System.Func<T, TResult>(Of TColumns, System.Object))
    • principalTable
      System.String
      System.String
    • principalColumn
      System.String
      System.String
    • principalSchema
      System.String
      System.String
    • onUpdate
    • onDelete

    Returns

  • ForeignKey(String, Expression<Func<TColumns, Object>>, 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<TDelegate><System.Func<T, TResult><TColumns, System.Object>>
      System.Linq.Expressions.Expression<TDelegate>(Of System.Func<T, TResult>(Of TColumns, System.Object))
    • principalTable
      System.String
      System.String
    • principalColumns
      System.String[]
      System.String()
    • principalSchema
      System.String
      System.String
    • onUpdate
    • onDelete

    Returns

  • PrimaryKey(String, Expression<Func<TColumns, Object>>)
    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<TDelegate><System.Func<T, TResult><TColumns, System.Object>>
      System.Linq.Expressions.Expression<TDelegate>(Of System.Func<T, TResult>(Of TColumns, System.Object))

    Returns

  • UniqueConstraint(String, Expression<Func<TColumns, Object>>)
    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<TDelegate><System.Func<T, TResult><TColumns, System.Object>>
      System.Linq.Expressions.Expression<TDelegate>(Of System.Func<T, TResult>(Of TColumns, System.Object))

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll