TableBuilder<TColumns> Class

Helper class that is used to further configure a table being created from a CreateTable call on DbMigration.


Namespace:  System.Data.Entity.Migrations.Builders
Assembly:  EntityFramework (in EntityFramework.dll)

public class TableBuilder<TColumns>

Type Parameters


The type for the columns in the table.

The TableBuilder<TColumns> type exposes the following members.

Public methodTableBuilder<TColumns>Initializes a new instance of the TableBuilder<TColumns> class.

Public methodEqualsDetermines whether the specified object is equal to the current object. (Overrides Object.Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodForeignKeySpecifies a foreign key constraint to be created on the table.
Public methodGetHashCodeGets the hash code for the current object. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the type of the current object.
Public methodIndexSpecifies an index to be created on the table.
Protected methodMemberwiseCloneCreates a shallow copy of the current object.
Public methodPrimaryKeySpecifies a primary key for the table.
Public methodToStringReturns a string representation of the current object. (Overrides Object.ToString().)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.