Method GetTableName
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
DbContextThe DbContext instance.
Returns
- string
The fully qualified table name in the format [Schema].[TableName].
Type Parameters
TEntity
The entity type.