Table of Contents

InOperator<T> Class

Definition

Namespace
Cuemon.Data
Assemblies
Cuemon.Data.dll
Source
src/Cuemon.Data/InOperator.cs

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

public abstract class InOperator<T>

Type Parameters

T
Inheritance
InOperator<T>
Derived

Constructors

Name Description
InOperator(Func<string>)

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

Properties

Name Description
ParameterPrefix

Gets the prefix of the parameter name that will be concatenated with index of both ArgumentsSelector(T, int) and ParametersSelector(T, int).

Methods

Name Description
ArgumentsSelector(T, int)

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

ParametersSelector(T, int)

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

ToSafeResult(IEnumerable<T>, Func<IEnumerable<string>, string>)

Converts the specified sequence of expressions to a SQL injection safe InOperatorResult.

ToSafeResult(params T[])

Converts the specified sequence of expressions to a SQL injection safe InOperatorResult.