Table of Contents

Method GetTableName

Namespace
Innova.Data
Assembly
Innova.Data.dll

GetTableName<TEntity>(DbContext)

Gets the fully qualified table name (including schema) for the specified entity type.

public static string GetTableName<TEntity>(this DbContext context) where TEntity : class

Parameters

context DbContext

The DbContext instance.

Returns

string

The fully qualified table name in the format [Schema].[TableName].

Type Parameters

TEntity

The entity type.