diff --git a/src/libraries/System.Data.Common/ref/System.Data.Common.cs b/src/libraries/System.Data.Common/ref/System.Data.Common.cs
index 1c39049c9def4..8e02eda90ec7f 100644
--- a/src/libraries/System.Data.Common/ref/System.Data.Common.cs
+++ b/src/libraries/System.Data.Common/ref/System.Data.Common.cs
@@ -1656,6 +1656,7 @@ public enum SqlDbType
Time = 32,
DateTime2 = 33,
DateTimeOffset = 34,
+ Json = 35,
}
public sealed partial class StateChangeEventArgs : System.EventArgs
{
diff --git a/src/libraries/System.Data.Common/src/System/Data/SqlDbType.cs b/src/libraries/System.Data.Common/src/System/Data/SqlDbType.cs
index 6a7d30e30e45d..7ba2233fc871a 100644
--- a/src/libraries/System.Data.Common/src/System/Data/SqlDbType.cs
+++ b/src/libraries/System.Data.Common/src/System/Data/SqlDbType.cs
@@ -3,40 +3,185 @@
namespace System.Data
{
- // Specifies the SQL Server data type.
+ ///
+ /// Specifies SQL Server-specific data type of a field, property, for use in a .
+ ///
public enum SqlDbType
{
- // A 64-bit signed integer.
+ ///
+ /// . A 64-bit signed integer.
+ ///
BigInt = 0,
+
+ ///
+ /// of type . A fixed-length stream of binary data ranging between 1 and 8,000 bytes.
+ ///
Binary = 1,
+
+ ///
+ /// . An unsigned numeric value that can be 0, 1, or
+ ///
Bit = 2,
+
+ ///
+ /// . A fixed-length stream of non-Unicode characters ranging between 1 and 8,000 characters.
+ ///
Char = 3,
+
+ ///
+ /// . Date and time data ranging in value from January 1, 1753 to December 31, 9999 to an accuracy of 3.33 milliseconds
+ ///
DateTime = 4,
+
+ ///
+ /// . A fixed precision and scale numeric value between -10 38 -1 and 10 38 -1.
+ ///
Decimal = 5,
+
+ ///
+ /// . A floating point number within the range of -1.79E +308 through 1.79E +308.
+ ///
Float = 6,
+
+ ///
+ /// of type . A variable-length stream of binary data ranging from 0 to 2 31 -1
+ /// (or 2,147,483,647) bytes.
+ ///
Image = 7,
+
+ ///
+ /// . A 32-bit signed integer.
+ ///
Int = 8,
+
+ ///
+ /// . A currency value ranging from -2 63 (or -9,223,372,036,854,775,808) to 2 63
+ /// -1 (or +9,223,372,036,854,775,807) with an accuracy to a ten-thousandth of a currency unit.
+ ///
Money = 9,
+
+ ///
+ /// . A fixed-length stream of Unicode characters ranging between 1 and 4,000 characters.
+ ///
NChar = 10,
+
+ ///
+ /// . A variable-length stream of Unicode data with a maximum length of 2 30 - 1
+ /// (or 1,073,741,823) characters.
+ ///
NText = 11,
+
+ ///
+ /// . A variable-length stream of Unicode characters ranging between 1 and 4,000 characters. Implicit
+ /// conversion fails if the string is greater than 4,000 characters. Explicitly set the object when working with strings
+ /// longer than 4,000 characters. Use when the database column is
+ /// .
+ ///
NVarChar = 12,
+
+ ///
+ /// . A floating point number within the range of -3.40E +38 through 3.40E +38.
+ ///
Real = 13,
+
+ ///
+ /// . A globally unique identifier (or GUID).
+ ///
UniqueIdentifier = 14,
+
+ ///
+ /// . Date and time data ranging in value from January 1, 1900 to June 6, 2079 to an accuracy of one minute.
+ ///
SmallDateTime = 15,
+
+ ///
+ /// . A 16-bit signed integer.
+ ///
SmallInt = 16,
+
+ ///
+ /// . A currency value ranging from -214,748.3648 to +214,748.3647 with an accuracy to a ten-thousandth of a currency unit.
+ ///
SmallMoney = 17,
+
+ ///
+ /// . A variable-length stream of non-Unicode data with a maximum length of 2 31 -1 (or 2,147,483,647) characters.
+ ///
Text = 18,
+
+ ///
+ /// of type . Automatically generated binary numbers, which are guaranteed to be unique within a database. is used typically as a mechanism for version-stamping table rows. The storage size is 8 bytes.
+ ///
Timestamp = 19,
+
+ ///
+ /// . An 8-bit unsigned integer.
+ ///
TinyInt = 20,
+
+ ///
+ /// of type . A variable-length stream of binary data ranging between 1 and 8,000 bytes.
+ /// Implicit conversion fails if the byte array is greater than 8,000 bytes. Explicitly set the object when working with byte arrays
+ /// larger than 8,000 bytes.
+ ///
VarBinary = 21,
+
+ ///
+ /// . A variable-length stream of non-Unicode characters ranging between 1 and 8,000 characters.
+ /// Use when the database column is .
+ ///
VarChar = 22,
+
+ ///
+ /// . A special data type that can contain numeric, string, binary, or date data as well as the SQL Server values Empty and Null,
+ /// which is assumed if no other type is declared.
+ ///
Variant = 23,
+
+ ///
+ /// An XML value. Obtain the XML as a string using the method or
+ /// property, or as an by calling the
+ /// method.
+ ///
Xml = 25,
+
+ ///
+ /// A SQL Server user-defined type (UDT).
+ ///
Udt = 29,
+
+ ///
+ /// A special data type for specifying structured data contained in table-valued parameters.
+ ///
Structured = 30,
+
+ ///
+ /// Date data ranging in value from January 1,1 AD through December 31, 9999 AD.
+ ///
Date = 31,
+
+ ///
+ /// Time data based on a 24-hour clock. Time value range is 00:00:00 through 23:59:59.9999999 with an accuracy of 100 nanoseconds.
+ /// Corresponds to a SQL Server value.
+ ///
Time = 32,
+
+ ///
+ /// Date and time data. Date value range is from January 1,1 AD through December 31, 9999 AD.
+ /// Time value range is 00:00:00 through 23:59:59.9999999 with an accuracy of 100 nanoseconds.
+ ///
DateTime2 = 33,
+
+ ///
+ /// Date and time data with time zone awareness. Date value range is from January 1,1 AD through December 31, 9999 AD.
+ /// Time value range is 00:00:00 through 23:59:59.9999999 with an accuracy of 100 nanoseconds. Time zone value range
+ /// is -14:00 through +14:00.
+ ///
DateTimeOffset = 34,
+
+ ///
+ /// A JSON value.
+ ///
+ Json = 35,
}
}