Table of Contents

Method ConvertToSqlParameter

Namespace
Innova.Data
Assembly
Innova.Data.dll

ConvertToSqlParameter(DbContext, IPrimaryKey)

Converts the primary keys to a list of SqlParameters.

public static List<SqlParameter> ConvertToSqlParameter(this DbContext ctx, IPrimaryKey keys)

Parameters

ctx DbContext

The DbContext instance.

keys IPrimaryKey

The primary keys.

Returns

List<SqlParameter>

A list of SqlParameters representing the primary keys.