Method WithDefault
| Improve this Doc View SourceWithDefault<T>(T, T, String, String)
Specifies default expression for column.
Declaration
public static T WithDefault<T>(this T column, T expression, string name, string description)
where T : Column, new()
Parameters
| Type | Name | Description |
|---|---|---|
| T | column | The column. |
| T | expression | The expression. |
| System.String | name | The name of the default constraint. |
| System.String | description | The description of the default constraint. |
Returns
| Type | Description |
|---|---|
| T | This column for fluent coding. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the column. |
Remarks
To specify default constant value, call WithDefaultValue<TColumn, TValue>(TColumn, TValue, String, String) method.