Method ConvertToSqlParameter
ConvertToSqlParameter(DbContext, IPrimaryKey)
Converts the primary keys to a list of SqlParameters.
public static List<SqlParameter> ConvertToSqlParameter(this DbContext ctx, IPrimaryKey keys)
Parameters
ctxDbContextThe DbContext instance.
keysIPrimaryKeyThe primary keys.
Returns
- List<SqlParameter>
A list of SqlParameters representing the primary keys.