Interface IDeleteBuilder
Builds a Delete expression.
Assembly: cs.temp.dll.dll
Syntax
public interface IDeleteBuilder : IFluentBuilder
Methods
Column(String)
Specifies the column to delete.
Declaration
IDeleteColumnBuilder Column(string columnName)
Parameters
Type |
Name |
Description |
System.String |
columnName |
|
Returns
Type |
Description |
IDeleteColumnBuilder |
|
DefaultConstraint()
Specifies the default constraint to delete.
Declaration
IDeleteDefaultConstraintOnTableBuilder DefaultConstraint()
Returns
Type |
Description |
IDeleteDefaultConstraintOnTableBuilder |
|
ForeignKey()
Specifies the foreign key to delete.
Declaration
IDeleteForeignKeyFromTableBuilder ForeignKey()
Returns
Type |
Description |
IDeleteForeignKeyFromTableBuilder |
|
ForeignKey(String)
Specifies the foreign key to delete.
Declaration
IDeleteForeignKeyOnTableBuilder ForeignKey(string foreignKeyName)
Parameters
Type |
Name |
Description |
System.String |
foreignKeyName |
|
Returns
Type |
Description |
IDeleteForeignKeyOnTableBuilder |
|
FromTable(String)
Specifies the table to delete data from.
Declaration
IDeleteDataBuilder FromTable(string tableName)
Parameters
Type |
Name |
Description |
System.String |
tableName |
|
Returns
Type |
Description |
IDeleteDataBuilder |
|
Index()
Specifies the index to delete.
Declaration
IDeleteIndexForTableBuilder Index()
Returns
Type |
Description |
IDeleteIndexForTableBuilder |
|
Index(String)
Specifies the index to delete.
Declaration
IDeleteIndexForTableBuilder Index(string indexName)
Parameters
Type |
Name |
Description |
System.String |
indexName |
|
Returns
Type |
Description |
IDeleteIndexForTableBuilder |
|
KeysAndIndexes(String, Boolean, Boolean)
Builds a Delete Keys and Indexes expression, and executes.
Declaration
IExecutableBuilder KeysAndIndexes(string tableName, bool local = true, bool foreign = true)
Parameters
Type |
Name |
Description |
System.String |
tableName |
|
System.Boolean |
local |
|
System.Boolean |
foreign |
|
Returns
Type |
Description |
IExecutableBuilder |
|
KeysAndIndexes<TDto>(Boolean, Boolean)
Builds a Delete Keys and Indexes expression, and executes.
Declaration
IExecutableBuilder KeysAndIndexes<TDto>(bool local = true, bool foreign = true)
Parameters
Type |
Name |
Description |
System.Boolean |
local |
|
System.Boolean |
foreign |
|
Returns
Type |
Description |
IExecutableBuilder |
|
Type Parameters
PrimaryKey(String)
Specifies the primary key to delete.
Declaration
IDeleteConstraintBuilder PrimaryKey(string primaryKeyName)
Parameters
Type |
Name |
Description |
System.String |
primaryKeyName |
|
Returns
Type |
Description |
IDeleteConstraintBuilder |
|
Table(String)
Specifies the table to delete.
Declaration
IExecutableBuilder Table(string tableName)
Parameters
Type |
Name |
Description |
System.String |
tableName |
|
Returns
Type |
Description |
IExecutableBuilder |
|
UniqueConstraint(String)
Specifies the unique constraint to delete.
Declaration
IDeleteConstraintBuilder UniqueConstraint(string constraintName)
Parameters
Type |
Name |
Description |
System.String |
constraintName |
|
Returns
Type |
Description |
IDeleteConstraintBuilder |
|