The IStatelessSession type exposes the following members.

Methods

  NameDescription
Public methodBeginTransaction()()()()
Begin a NHibernate transaction
Public methodBeginTransaction(IsolationLevel)
Begin a NHibernate transaction with the specified isolation level
Public methodClose
Close the stateless session and release the ADO.NET connection.
Public methodCreateCriteria(String)
Create a new ICriteria instance, for the given entity name.
Public methodCreateCriteria(Type)
Create a new ICriteria instance, for the given entity class, or a superclass of an entity class.
Public methodCreateCriteria(String, String)
Create a new ICriteria instance, for the given entity name, with the given alias.
Public methodCreateCriteria(Type, String)
Create a new ICriteria instance, for the given entity class, or a superclass of an entity class, with the given alias.
Public methodCreateCriteria<(Of <<'(T>)>>)()()()()
Create a new ICriteria instance, for the given entity class, or a superclass of an entity class.
Public methodCreateCriteria<(Of <<'(T>)>>)(String)
Create a new ICriteria instance, for the given entity class, or a superclass of an entity class, with the given alias.
Public methodCreateQuery
Create a new instance of Query for the given HQL query string.
Public methodCreateSQLQuery
Create a new instance of ISQLQuery for the given SQL query string. Entities returned by the query are detached.
Public methodDelete(Object)
Delete an entity.
Public methodDelete(String, Object)
Delete an entity.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodGet(String, Object)
Retrieve a entity.
Public methodGet(String, Object, LockMode)
Retrieve an entity, obtaining the specified lock mode.
Public methodGet<(Of <<'(T>)>>)(Object)
Retrieve an entity.
Public methodGet<(Of <<'(T>)>>)(Object, LockMode)
Retrieve an entity, obtaining the specified lock mode.
Public methodGetNamedQuery
Obtain an instance of IQuery for a named query string defined in the mapping file.
Public methodGetSessionImplementation
Gets the stateless session implementation.
Public methodInsert(Object)
Insert an entity.
Public methodInsert(String, Object)
Insert a row.
Public methodQueryOver<(Of <<'(T>)>>)()()()()
Creates a new IQueryOver<T> for the entity class.
Public methodQueryOver<(Of <<'(T>)>>)(Expression<(Of <<'(Func<(Of <<'(T>)>>)>)>>))
Creates a new IQueryOver<T> for the entity class.
Public methodRefresh(Object)
Refresh the entity instance state from the database.
Public methodRefresh(Object, LockMode)
Refresh the entity instance state from the database.
Public methodRefresh(String, Object)
Refresh the entity instance state from the database.
Public methodRefresh(String, Object, LockMode)
Refresh the entity instance state from the database.
Public methodSetBatchSize
Sets the batch size of the session
Public methodUpdate(Object)
Update an entity.
Public methodUpdate(String, Object)
Update an entity.

Extension Methods

  NameDescription
Public Extension MethodQuery<(Of <<'(T>)>>) (Defined by LinqExtensionMethods.)

Properties

  NameDescription
Public propertyConnection
Returns the current ADO.NET connection associated with this instance.
Public propertyIsConnected
Is the IStatelessSession currently connected?
Public propertyIsOpen
Is the IStatelessSession still open?
Public propertyTransaction
Get the current NHibernate transaction.

See Also