The SessionFactoryImpl type exposes the following members.

Constructors

  NameDescription
Public methodSessionFactoryImpl
Initializes a new instance of the SessionFactoryImpl class

Methods

  NameDescription
Public methodClose
Closes the session factory, releasing all held resources. cleans up used cache regions and "stops" the cache provider.close the ADO.NET connection
Public methodDispose
Releases all resources used by the SessionFactoryImpl
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodEvict(Type)
Public methodEvict(Type, Object)
Public methodEvictCollection(String)
Public methodEvictCollection(String, Object)
Public methodEvictEntity(String)
Public methodEvictEntity(String, Object)
Public methodEvictQueries()()()()
Public methodEvictQueries(String)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAllClassMetadata
Public methodGetAllCollectionMetadata
Public methodGetAllSecondLevelCacheRegions
Public methodGetClassMetadata(String)
Public methodGetClassMetadata(Type)
Public methodGetCollectionMetadata
Public methodGetCollectionPersister
Public methodGetCollectionRolesByEntityParticipant
Public methodGetCurrentSession
Public methodGetEntityPersister
Public methodGetFilterDefinition
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetIdentifierGenerator
Public methodGetIdentifierPropertyName
Public methodGetIdentifierType
Public methodGetImplementors
Return the names of all persistent (mapped) classes that extend or implement the given class or interface, accounting for implicit/explicit polymorphism settings and excluding mapped subclasses/joined-subclasses of other classes in the result.
Public methodGetImportedClassName
Public methodGetNamedQuery
Gets the hql query identified by the name.
Public methodGetNamedSQLQuery
Public methodGetQueryCache
Public methodGetRealObject
Public methodGetReferencedPropertyType
Public methodGetResultSetMapping
Public methodGetReturnAliases
Get the return aliases of a query
Public methodGetReturnTypes
Public methodGetSecondLevelCacheRegion
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasNonIdentifierPropertyNamedId
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOpenSession()()()()
Public methodOpenSession(IDbConnection)
Public methodOpenSession(IInterceptor)
Public methodOpenSession(IDbConnection, IInterceptor)
Public methodOpenSession(IDbConnection, Boolean, Boolean, ConnectionReleaseMode)
Public methodOpenStatelessSession()()()()
Get a new stateless session.
Public methodOpenStatelessSession(IDbConnection)
Get a new stateless session for the given ADO.NET connection.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetEntityPersister
Public methodTryGetGuessEntityName

Extension Methods

  NameDescription
Public Extension MethodAs<(Of <<'(T>)>>) (Defined by TypeHelperExtensionMethods.)
Public Extension MethodIsBetween
Apply a "between" constraint to the named property Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.)
Public Extension MethodIsIn(array<Object>[]()[][])Overloaded.
Apply an "in" constraint to the named property Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.)
Public Extension MethodIsIn(ICollection)Overloaded.
Apply an "in" constraint to the named property Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.)
Public Extension MethodIsProxy (Defined by NHibernateProxyHelper.)
Public Extension MethodToTypeParameters (Defined by ReflectHelper.)

Properties

See Also