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].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to