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.

Reply via email to