Method ConvertToPrimaryKeys
ConvertToPrimaryKeys<T>(IPrimaryKey)
Converts an IPrimaryKey object to an instance of PrimaryKeys<T>.
public static PrimaryKeys<T> ConvertToPrimaryKeys<T>(this IPrimaryKey keys) where T : class
Parameters
keys
IPrimaryKeyThe IPrimaryKey object.
Returns
- PrimaryKeys<T>
An instance of PrimaryKeys<T>.
Type Parameters
T
The type of the entity.
ConvertToPrimaryKeys(IPrimaryKey, Type)
Converts an IPrimaryKey object to an instance of PrimaryKeys with the specified entity type.
public static object ConvertToPrimaryKeys(this IPrimaryKey keys, Type entityType)
Parameters
keys
IPrimaryKeyThe IPrimaryKey object.
entityType
TypeThe type of the entity.
Returns
- object
An instance of PrimaryKeys.