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