-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Adding SqlJson and Data write with SqlJson (#2752) * Adding the SqlJson type Remove unused Adding all the json tests Revert "Remove unused" This reverts commit c448b6e. Remove unused * Change to static * Adding the SqlJson support * Adding the assert for column encryption * Adding the support for Json writes * Adding more support * Enabling the following SqlString sqlString = reader.GetSqlString(0); Assert.NotNull(sqlString.Value); var sqlJson = reader.GetSqlJson(0); Assert.NotNull(sqlJson); string fieldval = reader.GetFieldValue<string>(0); Assert.NotNull(fieldval); JsonDocument jsondoc = reader.GetFieldValue<JsonDocument>(0); Assert.NotNull(jsondoc); * Revert "Enabling the following" This reverts commit 6739e45. * ref update for SqlJson * resolve PR comments --------- Co-authored-by: Saurabh Singh <[email protected]>
- Loading branch information
1 parent
4806059
commit 0266b4a
Showing
19 changed files
with
445 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0"?> | ||
<docs> | ||
<members name="SqlJson"> | ||
<SqlJson> | ||
<summary>Represents the JSON datatype in SQL Server.</summary> | ||
</SqlJson> | ||
<ctor1> | ||
<summary>Parameterless constructor. Initializes a new instance of the SqlJson class which represents a null JSON value.</summary> | ||
</ctor1> | ||
<ctor2> | ||
<param name="jsonString"></param> | ||
<summary>Takes a <see cref="string"/> as input and initializes a new instance of the SqlJson class.</summary> | ||
</ctor2> | ||
<ctor3> | ||
<param name="jsonDoc"></param> | ||
<summary>Takes a <see cref="System.Text.Json.JsonDocument"/> as input and initializes a new instance of the SqlJson class.</summary> | ||
</ctor3> | ||
<IsNull> | ||
<inheritdoc/> | ||
</IsNull> | ||
<Null> | ||
<summary>Represents a null instance of the <see cref="SqlJson"/> type.</summary> | ||
</Null> | ||
<Value> | ||
<summary>Gets the string representation of the Json content of this <see cref="SqlJson" /> instance.</summary> | ||
</Value> | ||
<GetSqlJson> | ||
<param name="i"></param> | ||
<summary>Retrieves the column at ordinal as a <see cref="SqlJson"/>.</summary> | ||
<returns>A <see cref="SqlJson"/> object representing the column at the given ordinal.</returns> | ||
</GetSqlJson> | ||
</members> | ||
</docs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.