Method AsMySqlChar
| Improve this Doc View SourceAsMySqlChar<T>(T, String, String)
Specifies MySQL CHAR data type for column.
Declaration
public static T AsMySqlChar<T>(this T column, string charSetName = null, string collationName = null)
where T : Column<char? >
Parameters
| Type | Name | Description |
|---|---|---|
| T | column | The column. |
| System.String | charSetName | The char set name of the data type. |
| System.String | collationName | The collation name of the data type. |
Returns
| Type | Description |
|---|---|
| T | This column for fluent coding. |
Type Parameters
| Name | Description |
|---|---|
| T |
AsMySqlChar<T>(T, Int32, String, String)
Specifies MySQL CHAR(n) data type for column.
Declaration
public static T AsMySqlChar<T>(this T column, int size, string charSetName = null, string collationName = null)
where T : Column<string>
Parameters
| Type | Name | Description |
|---|---|---|
| T | column | The column. |
| System.Int32 | size | The size of the data type. |
| System.String | charSetName | The char set name of the data type. |
| System.String | collationName | The collation name of the data type. |
Returns
| Type | Description |
|---|---|
| T | This column for fluent coding. |
Type Parameters
| Name | Description |
|---|---|
| T |