Hi.
I think that ProxyFactoryFactory(from NHibernate.ByteCode.LinFu and
NHibernate.ByteCode.Spring) should returns thier own implementations
of IProxyValidator without checking default constructor:

using CommonDynProxyTypeValidator =
NHibernate.Proxy.DynProxyTypeValidator;

namespace NHibernate.ByteCode.Castle
{
    public class DynProxyTypeValidator : CommonDynProxyTypeValidator
    {
        protected override void CheckHasVisibleDefaultConstructor
(System.Type type)
        {

        }
    }
}
Now, for  using entities without default ctor(apart from implementing
BytecodeProvider), I have to disable proxy validation
(use_proxy_validator), but there are some other  important checks in
DynProxyTypeValidator(also it's possible to create own
ProxyFactoryFactory basen on LinFu or Spring factory, but I dont like
this way).
Thanks.

--

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


Reply via email to