Show / Hide Table of Contents

Method CreateDbTable

| Improve this Doc View Source

CreateDbTable<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.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest