Exemplo n.º 1
0
 public ValidateEntity(ValidationHandler validator, Func<ValidationHandler> entityToValidate, string property)
 {
     _validator = validator;
     _entityToValidate = entityToValidate;
     _property = property;
 }
Exemplo n.º 2
0
 public RequiredProperty(ValidationHandler validationHandler, Expression<Func<object>> expression)
 {
     _validationHandler = validationHandler;
     _expression = expression.Compile();
     _propertyName = expression.GetPropertyName();
 }
 public NonZeroValidator(ValidationHandler entity, Expression<Func<object>> fieldExpression, string errorMessage)
 {
     this.entity = entity;
     this.fieldExpression = fieldExpression;
     this.errorMessage = errorMessage;
     fieldName = Segator.Loms.Common.Entities.Base.ReflectionHelper.GetPropertyName(fieldExpression);
 }