Create a new ICriteria instance, for the given entity class,
or a superclass of an entity class.
Namespace: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
ICriteria CreateCriteria<T>() where T : class |
Visual Basic |
---|
Function CreateCriteria(Of T As Class) As ICriteria |
Visual C++ |
---|
generic<typename T> where T : ref class ICriteria^ CreateCriteria() |
Type Parameters
- T
- A class, which is persistent, or has persistent subclasses
Return Value
The ICriteria.Remarks
Entities returned by the query are detached.