Ejemplo n.º 1
0
 public RangeConstraint(Expression <Func <T, TField> > fieldSelector, TField from, TField to, bool inclusive = true)
     : base(ConstraintExpressionCombiner.Combine(fieldSelector, CreateExpression(from, to, inclusive)), CreateErrorMessage(fieldSelector, from, to, inclusive))
 {
 }
Ejemplo n.º 2
0
 public NotNullOrEmptyConstraint(Expression <Func <T, string> > fieldSelector)
     : base(ConstraintExpressionCombiner.Combine(fieldSelector, expression))
 {
 }
Ejemplo n.º 3
0
 public NotNullConstraint(Expression <Func <T, object> > fieldSelector)
     : base(ConstraintExpressionCombiner.Combine(fieldSelector, expression))
 {
 }