Create a LazyInitializer to handle all of the Methods/Properties that are called
on the Proxy.
Namespace:
NHibernate.ProxyAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Protected Sub New ( _ persistentClass As Type, _ id As Object, _ getIdentifierMethod As MethodInfo, _ setIdentifierMethod As MethodInfo, _ session As ISessionImplementor _ ) |
C# |
---|
protected LazyInitializer( Type persistentClass, Object id, MethodInfo getIdentifierMethod, MethodInfo setIdentifierMethod, ISessionImplementor session ) |
Visual C++ |
---|
protected: LazyInitializer( Type^ persistentClass, Object^ id, MethodInfo^ getIdentifierMethod, MethodInfo^ setIdentifierMethod, ISessionImplementor^ session ) |
JavaScript |
---|
NHibernate.Proxy.LazyInitializer = function(persistentClass, id, getIdentifierMethod, setIdentifierMethod, session); |
Parameters
- persistentClass
- Type: System..::.Type
The Class to Proxy.
- id
- Type: System..::.Object
The Id of the Object we are Proxying.
- getIdentifierMethod
- Type: System.Reflection..::.MethodInfo
- setIdentifierMethod
- Type: System.Reflection..::.MethodInfo
- session
- Type: NHibernate.Engine..::.ISessionImplementor
The ISession this Proxy is in.