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
ctxDbContextThe DbContext instance.
entityTThe entity.
Returns
- PrimaryKeys<T>
The SQL primary keys as a PrimaryKeys instance.
Type Parameters
TThe type of the entity.