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
ctx
DbContextThe DbContext instance.
keys
IPrimaryKeyThe primary keys.
Returns
- List<SqlParameter>
A list of SqlParameters representing the primary keys.