コード例 #1
0
ファイル: HistoryRecord.cs プロジェクト: kevinmiles/DeviceSQL
        public SqlSingle ToFloat()
        {
            var floatValue = new Data.HistoryRecord()
            {
                HistoryPointNumber = this.HistoryPointNumber, HistorySegment = this.HistorySegment, Index = this.Index, Value = this.Value
            }.ToNullableFloat();

            return(floatValue.HasValue ? floatValue.Value : SqlSingle.Null);
        }
コード例 #2
0
ファイル: HistoryRecord.cs プロジェクト: kevinmiles/DeviceSQL
        public SqlDateTime ToDateTimeStamp(DateTime deviceDateTime)
        {
            var dateTimeStamp = new Data.HistoryRecord()
            {
                HistoryPointNumber = this.HistoryPointNumber, HistorySegment = this.HistorySegment, Index = this.Index, Value = this.Value
            }.ToDateTimeStamp(deviceDateTime);

            return(dateTimeStamp.HasValue ? dateTimeStamp.Value : SqlDateTime.Null);
        }