public IntExpression(IntAttribute property, ValueOperator op, IntAttribute value) { _binExp = new BinaryExpression((NodeAttribute)property, BinaryExpression.GetOperator(op), BinaryExpression.GetNodeAttribute(value)); }
public IntExpression(PropertyType property, ValueOperator op, IntAttribute value) { if (property == null) { throw new ArgumentNullException("property"); } if (property.DataType != DataType.Int) { throw GetWrongPropertyDataTypeException("property", DataType.Int); } _binExp = new BinaryExpression(property, BinaryExpression.GetOperator(op), BinaryExpression.GetNodeAttribute(value)); }
public DateTimeExpression(PropertyType property, ValueOperator op, DateTimeAttribute value) { if (property == null) { throw new ArgumentNullException("property"); } if (property.DataType != DataType.DateTime) { throw new ArgumentOutOfRangeException("property", "The DataType of 'property' must be DataType.DateTime"); } _binExp = new BinaryExpression(property, BinaryExpression.GetOperator(op), BinaryExpression.GetNodeAttribute(value)); }
public DateTimeExpression(DateTimeAttribute property, ValueOperator op, DateTimeAttribute value) { _binExp = new BinaryExpression((NodeAttribute)property, BinaryExpression.GetOperator(op), BinaryExpression.GetNodeAttribute(value)); }
public StringExpression(StringAttribute property, StringOperator op, StringAttribute value) { _binExp = new BinaryExpression((NodeAttribute)property, BinaryExpression.GetOperator(op), BinaryExpression.GetNodeAttribute(value)); }