Assembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Interface IQuery |
C# |
---|
public interface IQuery |
Visual C++ |
---|
public interface class IQuery |
JavaScript |
---|
NHibernate.IQuery = function(); NHibernate.IQuery.createInterface('NHibernate.IQuery'); |
Remarks
Named query parameters are tokens of the form :name in the query string. A value is bound to the Int32 parameter :foo by calling
![]() | |
---|---|
SetParameter("foo", foo, NHibernateUtil.Int32); |
Unnamed parameters ? are also supported. To bind a value to an unnamed parameter use a Set method that accepts an Int32 positional argument - numbered from zero.
You may not mix and match unnamed parameters and named parameters in the same query.
Queries are executed by calling List() or Iterate(). A query may be re-executed by subsequent invocations. Its lifespan is, however, bounded by the lifespan of the ISession that created it.
Implementors are not intended to be threadsafe.