The ISession type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | BeginTransaction | Overloaded. |
![]() | CancelQuery |
Cancel execution of the current query.
|
![]() | Clear |
Completely clear the session. Evict all loaded instances and cancel all pending
saves, updates and deletions. Do not close open enumerables or instances of
ScrollableResults.
|
![]() | Close |
End the ISession by disconnecting from the ADO.NET connection and cleaning up.
|
![]() | Contains |
Is this instance associated with this Session?
|
![]() | CreateCriteria | Overloaded. |
![]() | CreateFilter |
Create a new instance of Query for the given collection and filter string
|
![]() | CreateMultiQuery |
Create a multi query, a query that can send several
queries to the server, and return all their results in a single
call.
|
![]() | CreateQuery |
Create a new instance of Query for the given query string
|
![]() | CreateSQLQuery | Overloaded. |
![]() | Delete | Overloaded. |
![]() | DisableFilter |
Disable the named filter for the current session.
|
![]() | Disconnect |
Disconnect the ISession from the current ADO.NET connection.
|
![]() | Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) |
![]() | EnableFilter |
Enable the named filter for this current session.
|
![]() | Enumerable | Overloaded. |
![]() | Evict |
Remove this instance from the session cache.
|
![]() | Filter | Overloaded. |
![]() | Find | Overloaded. |
![]() | Flush |
Force the ISession to flush.
|
![]() | Get | Overloaded. |
![]() | GetCurrentLockMode |
Determine the current lock mode of the given object
|
![]() | GetEnabledFilter |
Retrieve a currently enabled filter by name.
|
![]() | GetIdentifier |
Return the identifier of an entity instance cached by the ISession
|
![]() | GetNamedQuery |
Obtain an instance of IQuery for a named query string defined in the
mapping file.
|
![]() | GetSessionImplementation |
Gets the session implementation.
|
![]() | IsDirty |
Does this ISession contain any changes which must be
synchronized with the database? Would any SQL be executed if
we flushed this session?
|
![]() | Load | Overloaded. |
![]() | Lock |
Obtain the specified lock level upon the given object.
|
![]() | Reconnect | Overloaded. |
![]() | Refresh | Overloaded. |
![]() | Replicate |
Persist all reachable transient objects, reusing the current identifier
values. Note that this will not trigger the Interceptor of the Session.
|
![]() | Save | Overloaded. |
![]() | SaveOrUpdate |
Either Save() or Update() the given instance, depending upon the value of
its identifier property.
|
![]() | SaveOrUpdateCopy | Overloaded. |
![]() | Update | Overloaded. |
Properties
Name | Description | |
---|---|---|
![]() | Connection |
Gets the ADO.NET connection.
|
![]() | FlushMode |
Determines at which points Hibernate automatically flushes the session.
|
![]() | IsConnected |
Is the ISession currently connected?
|
![]() | IsOpen |
Is the ISession still open?
|
![]() | SessionFactory |
Get the ISessionFactory that created this instance.
|
![]() | Transaction |
Get the current Unit of Work and return the associated ITransaction object.
|