Class SqlInOperator<T>
Provides a safe way to include a Transact-SQL WHERE clause with an IN operator to execute against a SQL Server database.
Inherited Members
Namespace: Cuemon.Data.SqlClient
Assembly: Cuemon.Data.dll
Syntax
public sealed class SqlInOperator<T> : InOperator<T>
Type Parameters
Name | Description |
---|---|
T | The type of the data in the IN operation of the WHERE clause to execute against a SQL Server database. |
Constructors
| Improve this DocSqlInOperator(T[])
Initializes a new instance of the InOperator<T> class.
Declaration
public SqlInOperator(params T[] expressions)
Parameters
Type | Name | Description |
---|---|---|
T[] | expressions | The expressions to test for a match in the IN operator of the WHERE clause. |
SqlInOperator(IEnumerable<T>)
Initializes a new instance of the InOperator<T> class.
Declaration
public SqlInOperator(IEnumerable<T> expressions)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<T> | expressions | The expressions to test for a match in the IN operator of the WHERE clause. |
Methods
| Improve this DocParametersSelector(T, Int32)
A callback method that is responsible for the values passed to the Parameters property.
Declaration
protected override DbParameter ParametersSelector(T expression, int index)
Parameters
Type | Name | Description |
---|---|---|
T | expression | An expression to test for a match in the IN operator. |
System.Int32 | index | The index of the |
Returns
Type | Description |
---|---|
System.Data.Common.DbParameter | An System.Data.Common.DbParameter representing the value of the |
Overrides
Cuemon.Data.InOperator<T>.ParametersSelector(T, System.Int32)