Method GetSqlKeys
GetSqlKeys<T>(DbContext, T)
Gets the SQL primary keys for the specified entity.
public static PrimaryKeys<T> GetSqlKeys<T>(this DbContext ctx, T entity) where T : class
Parameters
ctx
DbContextThe DbContext instance.
entity
TThe entity.
Returns
- PrimaryKeys<T>
The SQL primary keys as a PrimaryKeys instance.
Type Parameters
T
The type of the entity.