Create a new ICriteria instance, for the given entity class,
or a superclass of an entity class, with the given alias.
Namespace: NHibernateAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
| C# |
|---|
ICriteria CreateCriteria( Type entityType, string alias ) |
| Visual Basic |
|---|
Function CreateCriteria ( _ entityType As Type, _ alias As String _ ) As ICriteria |
| Visual C++ |
|---|
ICriteria^ CreateCriteria( Type^ entityType, String^ alias ) |
Parameters
- entityType
- Type: System..::..Type
A class, which is persistent, or has persistent subclasses
- alias
- Type: System..::..String
The alias of the entity
Return Value
The ICriteria.
Remarks
Entities returned by the query are detached.