Construct a new key for a collection or entity instance.
Note that an entity name should always be the root entity
name, not a subclass entity name.
Namespace: NHibernate.CacheAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public CacheKey( Object id, IType type, string entityOrRoleName, EntityMode entityMode, ISessionFactoryImplementor factory ) |
Visual Basic |
---|
Public Sub New ( _ id As Object, _ type As IType, _ entityOrRoleName As String, _ entityMode As EntityMode, _ factory As ISessionFactoryImplementor _ ) |
Visual C++ |
---|
public: CacheKey( Object^ id, IType^ type, String^ entityOrRoleName, EntityMode entityMode, ISessionFactoryImplementor^ factory ) |
Parameters
- id
- Type: System..::..Object
The identifier associated with the cached data
- type
- Type: NHibernate.Type..::..IType
The Hibernate type mapping
- entityOrRoleName
- Type: System..::..String
The entity or collection-role name.
- entityMode
- Type: NHibernate..::..EntityMode
The entiyt mode of the originating session
- factory
- Type: NHibernate.Engine..::..ISessionFactoryImplementor
The session factory for which we are caching