The DefaultLazyInitializer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DefaultLazyInitializer | Initializes a new instance of the DefaultLazyInitializer class |
Methods
Name | Description | |
---|---|---|
AddSerializationInfo |
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.
(Inherited from BasicLazyInitializer.) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetImplementation()()()() |
Return the Underlying Persistent Object, initializing if necessary.
(Inherited from AbstractLazyInitializer.) | |
GetImplementation(ISessionImplementor) |
Return the Underlying Persistent Object in a given ISession, or null.
(Inherited from AbstractLazyInitializer.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize |
Perform an ImmediateLoad of the actual object for the Proxy.
(Inherited from AbstractLazyInitializer.) | |
Intercept | ||
Invoke |
Invokes the method if this is something that the LazyInitializer can handle
without the underlying proxied object being instantiated.
(Inherited from BasicLazyInitializer.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetImplementation | (Inherited from AbstractLazyInitializer.) | |
SetSession |
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.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UnsetSession |
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
Name | Description | |
---|---|---|
As<(Of <<'(T>)>>) | (Defined by TypeHelperExtensionMethods.) | |
IsBetween |
Apply a "between" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
IsIn(array<Object>[]()[][]) | Overloaded.
Apply an "in" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
IsIn(ICollection) | Overloaded.
Apply an "in" constraint to the named property
Note: throws an exception outside of a QueryOver expression
(Defined by RestrictionExtensions.) | |
IsProxy | (Defined by NHibernateProxyHelper.) | |
ToTypeParameters | (Defined by ReflectHelper.) |
Fields
Name | Description | |
---|---|---|
componentIdType | (Inherited from BasicLazyInitializer.) | |
getIdentifierMethod | (Inherited from BasicLazyInitializer.) | |
overridesEquals | (Inherited from BasicLazyInitializer.) | |
setIdentifierMethod | (Inherited from BasicLazyInitializer.) |
Properties
Name | Description | |
---|---|---|
EntityName | (Inherited from AbstractLazyInitializer.) | |
Identifier | (Inherited from AbstractLazyInitializer.) | |
IsConnectedToSession | (Inherited from AbstractLazyInitializer.) | |
IsReadOnlySettingAvailable |
Is the read-only setting available?
(Inherited from AbstractLazyInitializer.) | |
IsUninitialized | (Inherited from AbstractLazyInitializer.) | |
PersistentClass | (Inherited from BasicLazyInitializer.) | |
ReadOnly |
Read-only status
(Inherited from AbstractLazyInitializer.) | |
Session | (Inherited from AbstractLazyInitializer.) | |
Target | (Inherited from AbstractLazyInitializer.) | |
Unwrap | (Inherited from AbstractLazyInitializer.) |