Initialize doesn't appear to be a method on conf...

What version of nHibernate?  I'm on 2.1.2

G

On Dec 17, 1:03 pm, Fabio Maulo <[email protected]> wrote:
> conf.Initialize(validatorEngine)
> would be better
>
>
>
>
>
>
>
>
>
> On Fri, Dec 17, 2010 at 5:54 PM, gary lucas <[email protected]> wrote:
> > Figured it out:
>
> > NHibernate.Validator.Cfg.ValidatorInitializer.Initialize(conf);
>
> > G
>
> > On Dec 17, 10:42 am, gary lucas <[email protected]> wrote:
> > > First off, I have to say I'm not sure exactly how this is supposed to
> > > work.
>
> > > I've added a nhv.xml file, that doesn't seem to be an issue because
> > > when I call:
>
> > > ValidatorEngine validator = new ValidatorEngine();
>
> > > validator.Configure();
> > > bool isValid = validator.IsValid(object);
>
> > > Everything seems to work as expected, however I'm assuming that when I
> > > call an update with an object that is invalid I should get an
> > > exception...
> > > "If a constraint is violated, the event will raise a runtime
> > > InvalidStateException which contains an array of InvalidValues
> > > describing each failure."
>
> > > However I'm just getting the regular SQL exception ('Couldn't insert x
> > > into y') etc...
>
> > > My configuration specifies:
> > > <property name='autoregister_listeners'>true</property>
>
> > > Thank you,
>
> > > Gary
>
> > --
> > 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]<nhusers%[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.

Reply via email to