Table of Contents

Class SqlInOperator<T>

Namespace
Cuemon.Data.SqlClient
Assembly
Cuemon.Data.SqlClient.dll

Provides a safe way to include a Transact-SQL WHERE clause with an IN operator to execute against a SQL Server database.

public class SqlInOperator<T> : InOperator<T>

Type Parameters

T

The type of the data in the IN operation of the WHERE clause to execute against a SQL Server database.

Inheritance
Object
SqlInOperator<T>
Inherited Members

Constructors

SqlInOperator(Func<String>)

Initializes a new instance of the InOperator<T> class.

public SqlInOperator(Func<string> parameterPrefixGenerator = null)

Parameters

parameterPrefixGenerator Func<String>

The function delegate that generates a random prefix for a parameter name.

Methods

ParametersSelector(T, Int32)

A callback method that is responsible for the values passed to the ToSafeResult(T[]) method.

protected override IDbDataParameter ParametersSelector(T expression, int index)

Parameters

expression T

An expression to test for a match in the IN operator.

index Int32

The index of the expression.

Returns

IDbDataParameter

An System.Data.IDbDataParameter representing the value of the expression.