Apply an "in" constraint to the projection. This is the generic equivalent of In(String, ICollection), renamed to avoid ambiguity.

Namespace: NHibernate.Criterion
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public static AbstractCriterion InG<T>(
	IProjection projection,
	IEnumerable<T> values
)
Visual Basic
Public Shared Function InG(Of T) ( _
	projection As IProjection, _
	values As IEnumerable(Of T) _
) As AbstractCriterion
Visual C++
public:
generic<typename T>
static AbstractCriterion^ InG(
	IProjection^ projection, 
	IEnumerable<T>^ values
)

Parameters

projection
Type: NHibernate.Criterion..::..IProjection
The projection.
values
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'T>)>)>
An IEnumerable<(Of <(<'T>)>)> of values.

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:NHibernate.Criterion.Restrictions.InG``1(NHibernate.Criterion.IProjection,System.Collections.Generic.IEnumerable{``0})"]

Return Value

An InExpression.

See Also