Share via


TableBuilder<TColumns> Class

Definition

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.

public class TableBuilder<TColumns>
type TableBuilder<'Columns> = class
Public Class TableBuilder(Of TColumns)

Type Parameters

TColumns

The type that represents the table's columns.

Inheritance
TableBuilder<TColumns>

Constructors

TableBuilder<TColumns>(CreateTableOperation, DbMigration)

Initializes a new instance of the TableBuilder class.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

ForeignKey(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.

GetHashCode()

Serves as the default hash function.

GetType()

Gets the Type of the current instance.

Index(Expression<Func<TColumns,Object>>, Boolean, Object)

Specifies an index to be created on the table.

Index(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.

MemberwiseClone()

Creates a shallow copy of the current Object.

PrimaryKey(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.

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

Specifies a primary key for the table.

ToString()

Returns a string that represents the current object.

Applies to