|
5 | 5 | using Ydb.Sdk.Ado.Internal; |
6 | 6 | using Ydb.Sdk.Ado.YdbType; |
7 | 7 | using Ydb.Sdk.Value; |
8 | | -using static Ydb.Sdk.Ado.Internal.YdbTypedValueBuildExtensions; |
| 8 | +using static Ydb.Sdk.Ado.Internal.YdbTypedValueExtensions; |
9 | 9 |
|
10 | 10 | namespace Ydb.Sdk.Ado; |
11 | 11 |
|
@@ -175,61 +175,61 @@ internal TypedValue TypedValue |
175 | 175 | private TypedValue MakeInt16(object value) => value switch |
176 | 176 | { |
177 | 177 | short shortValue => shortValue.Int16(), |
178 | | - sbyte sbyteValue => YdbTypedValueBuildExtensions.Int16(sbyteValue), |
179 | | - byte byteValue => YdbTypedValueBuildExtensions.Int16(byteValue), |
| 178 | + sbyte sbyteValue => YdbTypedValueExtensions.Int16(sbyteValue), |
| 179 | + byte byteValue => YdbTypedValueExtensions.Int16(byteValue), |
180 | 180 | _ => throw ValueTypeNotSupportedException |
181 | 181 | }; |
182 | 182 |
|
183 | 183 | private TypedValue MakeInt32(object value) => value switch |
184 | 184 | { |
185 | 185 | int intValue => intValue.Int32(), |
186 | | - sbyte sbyteValue => YdbTypedValueBuildExtensions.Int32(sbyteValue), |
187 | | - byte byteValue => YdbTypedValueBuildExtensions.Int32(byteValue), |
188 | | - short shortValue => YdbTypedValueBuildExtensions.Int32(shortValue), |
189 | | - ushort ushortValue => YdbTypedValueBuildExtensions.Int32(ushortValue), |
| 186 | + sbyte sbyteValue => YdbTypedValueExtensions.Int32(sbyteValue), |
| 187 | + byte byteValue => YdbTypedValueExtensions.Int32(byteValue), |
| 188 | + short shortValue => YdbTypedValueExtensions.Int32(shortValue), |
| 189 | + ushort ushortValue => YdbTypedValueExtensions.Int32(ushortValue), |
190 | 190 | _ => throw ValueTypeNotSupportedException |
191 | 191 | }; |
192 | 192 |
|
193 | 193 | private TypedValue MakeInt64(object value) => value switch |
194 | 194 | { |
195 | 195 | long longValue => longValue.Int64(), |
196 | | - sbyte sbyteValue => YdbTypedValueBuildExtensions.Int64(sbyteValue), |
197 | | - byte byteValue => YdbTypedValueBuildExtensions.Int64(byteValue), |
198 | | - short shortValue => YdbTypedValueBuildExtensions.Int64(shortValue), |
199 | | - ushort ushortValue => YdbTypedValueBuildExtensions.Int64(ushortValue), |
200 | | - int intValue => YdbTypedValueBuildExtensions.Int64(intValue), |
201 | | - uint uintValue => YdbTypedValueBuildExtensions.Int64(uintValue), |
| 196 | + sbyte sbyteValue => YdbTypedValueExtensions.Int64(sbyteValue), |
| 197 | + byte byteValue => YdbTypedValueExtensions.Int64(byteValue), |
| 198 | + short shortValue => YdbTypedValueExtensions.Int64(shortValue), |
| 199 | + ushort ushortValue => YdbTypedValueExtensions.Int64(ushortValue), |
| 200 | + int intValue => YdbTypedValueExtensions.Int64(intValue), |
| 201 | + uint uintValue => YdbTypedValueExtensions.Int64(uintValue), |
202 | 202 | _ => throw ValueTypeNotSupportedException |
203 | 203 | }; |
204 | 204 |
|
205 | 205 | private TypedValue MakeUint16(object value) => value switch |
206 | 206 | { |
207 | 207 | ushort shortValue => shortValue.Uint16(), |
208 | | - byte byteValue => YdbTypedValueBuildExtensions.Uint16(byteValue), |
| 208 | + byte byteValue => YdbTypedValueExtensions.Uint16(byteValue), |
209 | 209 | _ => throw ValueTypeNotSupportedException |
210 | 210 | }; |
211 | 211 |
|
212 | 212 | private TypedValue MakeUint32(object value) => value switch |
213 | 213 | { |
214 | 214 | uint intValue => intValue.Uint32(), |
215 | | - byte byteValue => YdbTypedValueBuildExtensions.Uint32(byteValue), |
216 | | - ushort ushortValue => YdbTypedValueBuildExtensions.Uint32(ushortValue), |
| 215 | + byte byteValue => YdbTypedValueExtensions.Uint32(byteValue), |
| 216 | + ushort ushortValue => YdbTypedValueExtensions.Uint32(ushortValue), |
217 | 217 | _ => throw ValueTypeNotSupportedException |
218 | 218 | }; |
219 | 219 |
|
220 | 220 | private TypedValue MakeUint64(object value) => value switch |
221 | 221 | { |
222 | 222 | ulong longValue => longValue.Uint64(), |
223 | | - byte byteValue => YdbTypedValueBuildExtensions.Uint64(byteValue), |
224 | | - ushort ushortValue => YdbTypedValueBuildExtensions.Uint64(ushortValue), |
225 | | - uint uintValue => YdbTypedValueBuildExtensions.Uint64(uintValue), |
| 223 | + byte byteValue => YdbTypedValueExtensions.Uint64(byteValue), |
| 224 | + ushort ushortValue => YdbTypedValueExtensions.Uint64(ushortValue), |
| 225 | + uint uintValue => YdbTypedValueExtensions.Uint64(uintValue), |
226 | 226 | _ => throw ValueTypeNotSupportedException |
227 | 227 | }; |
228 | 228 |
|
229 | 229 | private TypedValue MakeDouble(object value) => value switch |
230 | 230 | { |
231 | 231 | double doubleValue => doubleValue.Double(), |
232 | | - float floatValue => YdbTypedValueBuildExtensions.Double(floatValue), |
| 232 | + float floatValue => YdbTypedValueExtensions.Double(floatValue), |
233 | 233 | _ => throw ValueTypeNotSupportedException |
234 | 234 | }; |
235 | 235 |
|
|
0 commit comments