It is to manage lazy-properties
On Fri, May 6, 2011 at 9:16 AM, michal <[email protected]> wrote:
> Hi
>
> I am using custom ProxyFactory in my project (it is based on the one
> from the old Proxy Generators project). I almost finished to make it
> compatible with NH 3.1 (used 2.1.2 before) , only one thing is left.
>
> There is new method "IsInstrumented" in the IProxyFactoryFactory
> interface. I saw it is implemented as follow - in the new default
> NHibernate.ByteCode.Castle.ProxyFactoryFactory:
> public bool IsInstrumented(Type entityClass)
> {
> return true;
> }
>
> for the default LinFu it is :
> public bool IsInstrumented(Type entityClass)
> {
> return false;
> }
>
> I have no idea what is this method used for, so I don't know which
> version I should use. My first guess was "Castle" (always return
> true), because I am using Castle library to generate proxies. But
> another new method, from IProxyFacory - GetFieldInterceptionProxy() ,
> I took from the LinFu implementation (just throwing
> NotImplementedException). So that can suggest I should set
> IsInstrumented to always return false.
>
> Can you help me ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>
--
Fabio Maulo
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.