TableBuilder<TColumns> Class

 

Helper class that is used to further configure a table being created from a CreateTable call on DbMigration . Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

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

System.Object
  System.Data.Entity.Migrations.Builders.TableBuilder<TColumns>

public class TableBuilder<TColumns>

Type Parameters

TColumns

The type that represents the table's columns.

NameDescription
System_CAPS_pubmethodTableBuilder<TColumns>(CreateTableOperation, DbMigration)

Initializes a new instance of the TableBuilder class.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodForeignKey(String, Expression<Func<TColumns, Object>>, Boolean, String, Object)

Specifies a foreign key constraint to be created on the table. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

System_CAPS_pubmethodGetHashCode()

Gets the hash code for the current object.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.

System_CAPS_pubmethodIndex(Expression<Func<TColumns, Object>>, String, Boolean, Boolean, Object)

Specifies an index to be created on the table. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.

System_CAPS_pubmethodPrimaryKey(Expression<Func<TColumns, Object>>, String, Boolean, Object)

Specifies a primary key for the table. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

System_CAPS_pubmethodToString()

Returns 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.