private static void ConfigureValidatorFromDDL(PersistentClass persistentClass, ValidatorEngine ve) { try { if (persistentClass.MappedClass == null) { return; } IClassValidator classValidator = ve.GetClassValidator(persistentClass.MappedClass); classValidator.ConfigureFrom(persistentClass.PropertyClosureIterator); } catch (Exception ex) { #if NETFX log.Warn( string.Format("Unable to auto generate validators from mapping for [MappedClass={0}]", persistentClass.MappedClass.FullName), ex); #else Log.Warn(ex, "Unable to auto generate validators from mapping for [MappedClass={0}]", persistentClass.MappedClass.FullName); #endif } }