The IStatelessSession type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| BeginTransaction()()()() |
Begin a NHibernate transaction
| |
| BeginTransaction(IsolationLevel) |
Begin a NHibernate transaction with the specified isolation level
| |
| Close | Close the stateless session and release the ADO.NET connection. | |
| CreateCriteria(String) |
Create a new ICriteria instance, for the given entity name.
| |
| CreateCriteria(Type) |
Create a new ICriteria instance, for the given entity class,
or a superclass of an entity class.
| |
| CreateCriteria(String, String) |
Create a new ICriteria instance, for the given entity name,
with the given alias.
| |
| CreateCriteria(Type, String) |
Create a new ICriteria instance, for the given entity class,
or a superclass of an entity class, with the given alias.
| |
| CreateCriteria<(Of <<'(T>)>>)()()()() |
Create a new ICriteria instance, for the given entity class,
or a superclass of an entity class.
| |
| CreateCriteria<(Of <<'(T>)>>)(String) |
Create a new ICriteria instance, for the given entity class,
or a superclass of an entity class, with the given alias.
| |
| CreateQuery |
Create a new instance of Query for the given HQL query string.
| |
| CreateSQLQuery |
Create a new instance of ISQLQuery for the given SQL query string.
Entities returned by the query are detached.
| |
| Delete(Object) | Delete an entity. | |
| Delete(String, Object) | Delete an entity. | |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
| Get(String, Object) | Retrieve a entity. | |
| Get(String, Object, LockMode) |
Retrieve an entity, obtaining the specified lock mode.
| |
| Get<(Of <<'(T>)>>)(Object) |
Retrieve an entity.
| |
| Get<(Of <<'(T>)>>)(Object, LockMode) |
Retrieve an entity, obtaining the specified lock mode.
| |
| GetNamedQuery |
Obtain an instance of IQuery for a named query string defined in
the mapping file.
| |
| GetSessionImplementation |
Gets the stateless session implementation.
| |
| Insert(Object) | Insert an entity. | |
| Insert(String, Object) | Insert a row. | |
| QueryOver<(Of <<'(T>)>>)()()()() |
Creates a new IQueryOver<T> for the entity class.
| |
| QueryOver<(Of <<'(T>)>>)(Expression<(Of <<'(Func<(Of <<'(T>)>>)>)>>)) |
Creates a new IQueryOver<T> for the entity class.
| |
| Refresh(Object) |
Refresh the entity instance state from the database.
| |
| Refresh(Object, LockMode) |
Refresh the entity instance state from the database.
| |
| Refresh(String, Object) |
Refresh the entity instance state from the database.
| |
| Refresh(String, Object, LockMode) |
Refresh the entity instance state from the database.
| |
| SetBatchSize |
Sets the batch size of the session
| |
| Update(Object) | Update an entity. | |
| Update(String, Object) | Update an entity. |
Extension Methods
| Name | Description | |
|---|---|---|
| Query<(Of <<'(T>)>>) | (Defined by LinqExtensionMethods.) |