Its is expensive for me. I have thousands of classes and for each one I get exception. And this takes aloooooot time.
Well, is this an known issue? Am I the only one who gets First Chance of an exception when validator is used that way? If yes, then I did something wrong. On Apr 14, 3:15 am, Fabio Maulo <[email protected]> wrote: > Hi mynkow! > > Can you quantify "expensive" ? > > After that please open a new issue with some more information, about the > behaviour you are seeing, in our JIRA.http://216.121.112.228/browse/NHV > > 2010/4/13 mynkow <[email protected]> > > > > > Hi, > > > I have a configuration like this: > > <<<<<<<<<<<<<<<<<< > > var configure = new FluentConfiguration(); > > configure > > .SetDefaultValidatorMode( ValidatorMode.UseExternal ) > > .Register( Assembly.Load( "Assembly" > > ).ValidationDefinitions() ) > > .IntegrateWithNHibernate > > .ApplyingDDLConstraints() > > .And.RegisteringListeners(); > > > engine.Configure( configure ); > > > and a definition like this: > > <<<<<<<<<<<<<<<<<< > > public class OrgValidationDef : ValidationDef<OrgEntity> > > { > > public OrgValidationDef() > > { > > Define(x => > > x.Name).NotNullableAndNotEmpty().And.MaxLength(199); > > } > > } > > > The problem is that the configurator is searching for a xml file > > definition (ValidatorMode.UseExternal) and if cannot find it > > (obviously it is missing ) then an exception is thrown. > > > Any Ideas how to handle this and avoid expensive search for an XML? > > > -- > > 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.
