/// <summary> /// Copy CTOR /// </summary> /// <param name="rangeData"></param> public RangeData(RangeData rangeData) { FieldIndex = rangeData.FieldIndex; Min = new BoundaryValue(rangeData.Min); Max = new BoundaryValue(rangeData.Max); DatetimeRangeIdx = rangeData.DatetimeRangeIdx; }
/// <summary> /// Copy CTOR /// </summary> /// <param name="boundaryValue"></param> public BoundaryValue(BoundaryValue boundaryValue) { Type = boundaryValue.Type; Value = new FieldValue(); Value.Value = boundaryValue.Value.Value; Value.IsNull = boundaryValue.Value.IsNull; Discard = boundaryValue.Discard; }
public override bool Equals(object obj) { BoundaryValue other = obj as BoundaryValue; if (other == null) { return(false); } return((this.Discard == other.Discard) && (this.Type == other.Type) && (object.Equals(this.Value, other.Value))); }
} // == 0 - regular field // > 0 - order number of the range for time part in range table (idx + 1) // < 0 - time part of the Datetime field /// <summary> /// CTOR /// </summary> public RangeData() { Min = new BoundaryValue(); Max = new BoundaryValue(); }