ToSafeResult Method
Definition
ToSafeResult(params T[])
Converts the specified sequence of expressions to a SQL injection safe InOperatorResult.
public InOperatorResult ToSafeResult(params T[] expressions)
Parameters
expressionsT[]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
expressionsIEnumerable<T>The expressions to test for a match in the IN operator of the WHERE clause.
argumentsStringConverterFunc<IEnumerable<string>, string>The function delegate arguments string converter.
Returns
- InOperatorResult
A new instance of InOperatorResult.
Exceptions
- ArgumentNullException
expressionscannot be null.