public SqlDateTime ToDateTimeStamp(DateTime deviceDateTime) { var dateTimeStamp = new Data.ROCPlusHistoryRecord() { HistoryPointNumber = this.HistoryPointNumber, HistorySegment = this.HistorySegment, Index = this.Index, Value = this.Value }.DateTimeStamp; return(dateTimeStamp.HasValue ? dateTimeStamp.Value : SqlDateTime.Null); }
public SqlSingle ToFloat() { var floatValue = new Data.ROCPlusHistoryRecord() { HistoryPointNumber = this.HistoryPointNumber, HistorySegment = this.HistorySegment, Index = this.Index, Value = this.Value }.ToNullableFloat(); return(floatValue.HasValue ? floatValue.Value : SqlSingle.Null); }