File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed
src/Microsoft.Data.SqlClient Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 624
624
<Compile Include =" $(CommonSourceRoot)System\Diagnostics\CodeAnalysis.cs" >
625
625
<Link >Common\System\Diagnostics\CodeAnalysis.cs</Link >
626
626
</Compile >
627
+ <Compile Include =" $(CommonSourceRoot)Microsoft\Data\SqlDbTypeExtensions.cs" >
628
+ <Link >Microsoft\Data\SqlDbTypeExtensions.cs</Link >
629
+ </Compile >
627
630
628
631
<Compile Include =" Interop\SNINativeMethodWrapper.Common.cs" />
629
632
<Compile Include =" Microsoft\Data\Common\DbConnectionOptions.cs" />
Original file line number Diff line number Diff line change 645
645
<Compile Include =" $(CommonSourceRoot)\Microsoft\Data\ProviderBase\DbReferenceCollection.cs" >
646
646
<Link >Microsoft\Data\ProviderBase\DbReferenceCollection.cs</Link >
647
647
</Compile >
648
+ <Compile Include =" $(CommonSourceRoot)Microsoft\Data\SqlDbTypeExtensions.cs" >
649
+ <Link >Microsoft\Data\SqlDbTypeExtensions.cs</Link >
650
+ </Compile >
648
651
</ItemGroup >
649
652
<ItemGroup >
650
653
<Compile Include =" Common\src\Microsoft\Data\Common\NameValuePermission.cs" />
Original file line number Diff line number Diff line change
1
+ // Licensed to the .NET Foundation under one or more agreements.
2
+ // The .NET Foundation licenses this file to you under the MIT license.
3
+ // See the LICENSE file in the project root for more information.
4
+
5
+ using System . Data ;
6
+
7
+ namespace Microsoft . Data
8
+ {
9
+ /// <summary>
10
+ /// Extensions for SqlDbType enum to enable its usage.
11
+ /// </summary>
12
+ public static class SqlDbTypeExtensions
13
+ {
14
+ /// <summary>
15
+ /// Represents the JSON Data type in SQL Server.
16
+ /// </summary>
17
+ #if NET9_0_OR_GREATER
18
+ public const SqlDbType Json = SqlDbType . Json ;
19
+ #else
20
+ public const SqlDbType Json = ( SqlDbType ) 35 ;
21
+ #endif
22
+ }
23
+ }
You can’t perform that action at this time.
0 commit comments