Table of Contents

ToSafeResult Method

Definition

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

ToSafeResult(params T[])

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

public InOperatorResult ToSafeResult(params T[] expressions)

Parameters

expressions T[]

The expressions to test for a match in the IN operator of the WHERE clause.

Returns

InOperatorResult

A new instance of InOperatorResult.

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

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

public InOperatorResult ToSafeResult(IEnumerable<T> expressions, Func<IEnumerable<string>, string> argumentsStringConverter = null)

Parameters

expressions IEnumerable<T>

The expressions to test for a match in the IN operator of the WHERE clause.

argumentsStringConverter Func<IEnumerable<string>, string>

The function delegate arguments string converter.

Returns

InOperatorResult

A new instance of InOperatorResult.

Exceptions

ArgumentNullException

expressions cannot be null.