Пример #1
0
 /// <summary>
 /// 选择比较符,及要比较的属性,进行验证
 /// </summary>
 /// <param name="operation"></param>
 /// <param name="comparisonPropertyName"></param>
 public DateCompareAttribute(CompareToOperation operation, string comparisonPropertyName)
 {
     _operation = operation;
     _comparisionPropertyName = comparisonPropertyName;
 }
Пример #2
0
 public CompareToAttribute(CompareToOperation operation, string comparisonPropertyName1, string comparisonPropertyName2)
 {
     _Operation = operation;
     _ComparisionPropertyName1 = comparisonPropertyName1;
     _ComparisionPropertyName2 = comparisonPropertyName2;
 }
Пример #3
0
 public CompareToAttribute(CompareToOperation operation, string comparisonPropertyName1, string comparisonPropertyName2)
 {
     _Operation = operation;
     _ComparisionPropertyName1 = comparisonPropertyName1;
     _ComparisionPropertyName2 = comparisonPropertyName2;
 }