@@ -56,29 +56,29 @@ internal PointData ToPoint<TM>(TM measurement, WritePrecision precision)
5656 var name = ! string . IsNullOrEmpty ( propertyInfo . Column . Name ) ? propertyInfo . Column . Name : propertyInfo . Property . Name ;
5757 if ( propertyInfo . Column . IsTag )
5858 {
59- point . Tag ( name , value . ToString ( ) ) ;
59+ point = point . Tag ( name , value . ToString ( ) ) ;
6060 }
6161 else if ( propertyInfo . Column . IsTimestamp )
6262 {
6363 if ( value is long l )
6464 {
65- point . Timestamp ( l , precision ) ;
65+ point = point . Timestamp ( l , precision ) ;
6666 }
6767 else if ( value is TimeSpan span )
6868 {
69- point . Timestamp ( span , precision ) ;
69+ point = point . Timestamp ( span , precision ) ;
7070 }
7171 else if ( value is DateTime date )
7272 {
73- point . Timestamp ( date , precision ) ;
73+ point = point . Timestamp ( date , precision ) ;
7474 }
7575 else if ( value is DateTimeOffset offset )
7676 {
77- point . Timestamp ( offset , precision ) ;
77+ point = point . Timestamp ( offset , precision ) ;
7878 }
7979 else if ( value is Instant instant )
8080 {
81- point . Timestamp ( instant , precision ) ;
81+ point = point . Timestamp ( instant , precision ) ;
8282 }
8383 else
8484 {
@@ -89,55 +89,55 @@ internal PointData ToPoint<TM>(TM measurement, WritePrecision precision)
8989 {
9090 if ( value is bool b )
9191 {
92- point . Field ( name , b ) ;
92+ point = point . Field ( name , b ) ;
9393 }
9494 else if ( value is double d )
9595 {
96- point . Field ( name , d ) ;
96+ point = point . Field ( name , d ) ;
9797 }
9898 else if ( value is float f )
9999 {
100- point . Field ( name , f ) ;
100+ point = point . Field ( name , f ) ;
101101 }
102102 else if ( value is decimal dec )
103103 {
104- point . Field ( name , dec ) ;
104+ point = point . Field ( name , dec ) ;
105105 }
106106 else if ( value is long lng )
107107 {
108- point . Field ( name , lng ) ;
108+ point = point . Field ( name , lng ) ;
109109 }
110110 else if ( value is ulong ulng )
111111 {
112- point . Field ( name , ulng ) ;
112+ point = point . Field ( name , ulng ) ;
113113 }
114114 else if ( value is int i )
115115 {
116- point . Field ( name , i ) ;
116+ point = point . Field ( name , i ) ;
117117 }
118118 else if ( value is byte bt )
119119 {
120- point . Field ( name , bt ) ;
120+ point = point . Field ( name , bt ) ;
121121 }
122122 else if ( value is sbyte sb )
123123 {
124- point . Field ( name , sb ) ;
124+ point = point . Field ( name , sb ) ;
125125 }
126126 else if ( value is short sh )
127127 {
128- point . Field ( name , sh ) ;
128+ point = point . Field ( name , sh ) ;
129129 }
130130 else if ( value is uint ui )
131131 {
132- point . Field ( name , ui ) ;
132+ point = point . Field ( name , ui ) ;
133133 }
134134 else if ( value is ushort us )
135135 {
136- point . Field ( name , us ) ;
136+ point = point . Field ( name , us ) ;
137137 }
138138 else
139139 {
140- point . Field ( name , value . ToString ( ) ) ;
140+ point = point . Field ( name , value . ToString ( ) ) ;
141141 }
142142 }
143143 }
0 commit comments