Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }