public StringExpression(PropertyType property, StringOperator op, StringAttribute value) { if (property == null) throw new ArgumentNullException("property"); if (property.DataType != DataType.String) throw GetWrongPropertyDataTypeException("property", DataType.String); _binExp = new BinaryExpression(property, BinaryExpression.GetOperator(op), BinaryExpression.GetNodeAttribute(value)); }
public StringExpression(StringAttribute property, StringOperator op, PropertyType value) { if (value == null) throw new ArgumentNullException("value"); if (value.DataType != DataType.String) throw GetWrongPropertyDataTypeException("value", DataType.String); _binExp = new BinaryExpression((NodeAttribute)property, BinaryExpression.GetOperator(op), value); }
//-- There are not any NodeAttribute with Currency datatype public CurrencyExpression(PropertyType property, ValueOperator op, decimal? value) { if (property == null) throw new ArgumentNullException("property"); if (property.DataType != DataType.Currency) throw GetWrongPropertyDataTypeException("property", DataType.Currency); _binExp = new BinaryExpression(property, BinaryExpression.GetOperator(op), 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(PropertyType property, ValueOperator op, PropertyType value) { if (property == null) throw new ArgumentNullException("property"); if (property.DataType != DataType.DateTime) throw GetWrongPropertyDataTypeException("property", DataType.DateTime); if (value == null) throw new ArgumentNullException("value"); if (value.DataType != DataType.DateTime) throw GetWrongPropertyDataTypeException("value", DataType.DateTime); _binExp = new BinaryExpression(property, BinaryExpression.GetOperator(op), value); }
public StringExpression(StringAttribute property, StringOperator op, StringAttribute value) { _binExp = new BinaryExpression((NodeAttribute)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 IntExpression(IntAttribute property, ValueOperator op, IntAttribute value) { _binExp = new BinaryExpression((NodeAttribute)property, BinaryExpression.GetOperator(op), BinaryExpression.GetNodeAttribute(value)); }