The ISessionFactory type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | Close |
Destroy this SessionFactory and release all resources
connection pools, etc). It is the responsibility of the application
to ensure that there are no open Sessions before calling
close().
|
![]() | Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) |
![]() | Evict(Type) |
Evict all entries from the process-level cache. This method occurs outside
of any transaction; it performs an immediate "hard" remove, so does not respect
any transaction isolation semantics of the usage strategy. Use with care.
|
![]() | Evict(Type, Object) |
Evict an entry from the process-level cache. This method occurs outside
of any transaction; it performs an immediate "hard" remove, so does not respect
any transaction isolation semantics of the usage strategy. Use with care.
|
![]() | EvictCollection(String) |
Evict all entries from the process-level cache. This method occurs outside
of any transaction; it performs an immediate "hard" remove, so does not respect
any transaction isolation semantics of the usage strategy. Use with care.
|
![]() | EvictCollection(String, Object) |
Evict an entry from the process-level cache. This method occurs outside
of any transaction; it performs an immediate "hard" remove, so does not respect
any transaction isolation semantics of the usage strategy. Use with care.
|
![]() | EvictEntity(String) |
Evict all entries from the second-level cache. This method occurs outside
of any transaction; it performs an immediate "hard" remove, so does not respect
any transaction isolation semantics of the usage strategy. Use with care.
|
![]() | EvictEntity(String, Object) |
Evict an entry from the second-level cache. This method occurs outside
of any transaction; it performs an immediate "hard" remove, so does not respect
any transaction isolation semantics of the usage strategy. Use with care.
|
![]() | EvictQueries()()()() |
Evict any query result sets cached in the default query cache region.
|
![]() | EvictQueries(String) |
Evict any query result sets cached in the named query cache region.
|
![]() | GetAllClassMetadata | |
![]() | GetAllCollectionMetadata |
Get all CollectionMetadata as a IDictionary from role name
to metadata object
|
![]() | GetClassMetadata(String) | Get the IClassMetadata associated with the given entity name |
![]() | GetClassMetadata(Type) |
Get the IClassMetadata associated with the given entity class
|
![]() | GetCollectionMetadata |
Get the CollectionMetadata associated with the named collection role
|
![]() | GetCurrentSession |
Obtains the current session.
|
![]() | GetFilterDefinition |
Obtain the definition of a filter by name.
|
![]() | OpenSession()()()() |
Create a database connection and open a ISession on it
|
![]() | OpenSession(IDbConnection) |
Open a ISession on the given connection
|
![]() | OpenSession(IInterceptor) |
Create database connection and open a ISession on it, specifying an interceptor
|
![]() | OpenSession(IDbConnection, IInterceptor) |
Open a ISession on the given connection, specifying an interceptor
|
![]() | OpenStatelessSession()()()() | Get a new stateless session. |
![]() | OpenStatelessSession(IDbConnection) | Get a new stateless session for the given ADO.NET connection. |
Properties
Name | Description | |
---|---|---|
![]() | DefinedFilterNames |
Obtain a set of the names of all filters defined on this SessionFactory.
|
![]() | IsClosed | Was this ISessionFactory already closed? |
![]() | Statistics | Get the statistics for this session factory |