The BasicLazyInitializer type exposes the following members.

Constructors

  NameDescription
Protected methodBasicLazyInitializer
Initializes a new instance of the BasicLazyInitializer class

Methods

  NameDescription
Protected methodAddSerializationInfo
Adds all of the information into the SerializationInfo that is needed to reconstruct the proxy during deserialization or to replace the proxy with the instantiated target.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
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 methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetImplementation()()()()
Return the Underlying Persistent Object, initializing if necessary.
(Inherited from AbstractLazyInitializer.)
Public methodGetImplementation(ISessionImplementor)
Return the Underlying Persistent Object in a given ISession, or null.
(Inherited from AbstractLazyInitializer.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Perform an ImmediateLoad of the actual object for the Proxy.
(Inherited from AbstractLazyInitializer.)
Public methodInvoke
Invokes the method if this is something that the LazyInitializer can handle without the underlying proxied object being instantiated.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetImplementation (Inherited from AbstractLazyInitializer.)
Public methodSetSession
Associate the proxy with the given session. Care should be given to make certain that the proxy is added to the session's persistence context as well to maintain the symmetry of the association. That must be done seperately as this method simply sets an internal reference. We do also check that if there is already an associated session that the proxy reference was removed from that previous session's persistence context.
(Inherited from AbstractLazyInitializer.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUnsetSession
Unset this initializer's reference to session. It is assumed that the caller is also taking care or cleaning up the owning proxy's reference in the persistence context. Generally speaking this is intended to be called only during Evict(Object) and Clear()()()() processing; most other use-cases should call SetSession(ISessionImplementor) instead.
(Inherited from AbstractLazyInitializer.)

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.)

Fields

Properties

  NameDescription
Public propertyEntityName (Inherited from AbstractLazyInitializer.)
Public propertyIdentifier (Inherited from AbstractLazyInitializer.)
Protected propertyIsConnectedToSession (Inherited from AbstractLazyInitializer.)
Public propertyIsReadOnlySettingAvailable
Is the read-only setting available?
(Inherited from AbstractLazyInitializer.)
Public propertyIsUninitialized (Inherited from AbstractLazyInitializer.)
Public propertyPersistentClass (Overrides AbstractLazyInitializer..::..PersistentClass.)
Public propertyReadOnly
Read-only status
(Inherited from AbstractLazyInitializer.)
Public propertySession (Inherited from AbstractLazyInitializer.)
Protected propertyTarget (Inherited from AbstractLazyInitializer.)
Public propertyUnwrap (Inherited from AbstractLazyInitializer.)

See Also