The ISession type exposes the following members.

Methods

  NameDescription
BeginTransactionOverloaded.
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?
CreateCriteriaOverloaded.
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
CreateSQLQueryOverloaded.
DeleteOverloaded.
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.
EnumerableOverloaded.
Evict
Remove this instance from the session cache.
FilterOverloaded.
FindOverloaded.
Flush
Force the ISession to flush.
GetOverloaded.
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?
LoadOverloaded.
Lock
Obtain the specified lock level upon the given object.
ReconnectOverloaded.
RefreshOverloaded.
Replicate
Persist all reachable transient objects, reusing the current identifier values. Note that this will not trigger the Interceptor of the Session.
SaveOverloaded.
SaveOrUpdate
Either Save() or Update() the given instance, depending upon the value of its identifier property.
SaveOrUpdateCopyOverloaded.
UpdateOverloaded.

See Also