Method CreateDbTable
| Improve this Doc View SourceCreateDbTable<T>(T, DbSession, String)
Creates DbTable object.
Declaration
public static DbTable<T> CreateDbTable<T>(this T modelRef, DbSession dbSession, string name)
where T : class, IEntity, new()
Parameters
| Type | Name | Description |
|---|---|---|
| T | modelRef | The model reference. |
| DbSession | dbSession | The database session. |
| System.String | name | The name of the table. |
Returns
| Type | Description |
|---|---|
| DbTable<T> | The created DbTable object. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of entity. |