Skip to content

Commit fede6a8

Browse files
drop Json
1 parent 74c23f4 commit fede6a8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Ydb.Sdk/src/Ado/YdbParameter.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@ string valueString when DbType is DbType.String or DbType.AnsiString or DbType.A
174174
MemoryStream memoryStream when DbType is DbType.Binary or DbType.Object => YdbValue.MakeString(
175175
memoryStream.ToArray()),
176176
TimeSpan timeSpan when DbType is DbType.Object => YdbValue.MakeInterval(timeSpan),
177-
JsonElement jsonElement => YdbValue.MakeJson(jsonElement.ToString()),
178-
JsonDocument jsonDocument => YdbValue.MakeJson(jsonDocument.RootElement.ToString()),
179177
_ when DbType is DbType.VarNumeric or DbType.Xml or DbType.Time =>
180178
throw new YdbException($"Ydb don't supported this DbType: {DbType}"),
181179
_ => ThrowInvalidOperation()

0 commit comments

Comments
 (0)