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
keysIPrimaryKeyThe IPrimaryKey object.
Returns
- PrimaryKeys<T>
An instance of PrimaryKeys<T>.
Type Parameters
TThe 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
keysIPrimaryKeyThe IPrimaryKey object.
entityTypeTypeThe type of the entity.
Returns
- object
An instance of PrimaryKeys.