Skip to content

Commit a22bf28

Browse files
authored
Merge | SqlTransaction (#3231)
* Create merge file * Merging Commit method * Merge Dispose method * Merge Rollback method w/o transaction name * Merge Rollback method w/transaction name * Merge Save method * Final touchups of merge * Tweak usings * Fix doc hrefs * Deleting old SqlTransaction files, adding references to the common project instance * Move code from SqlTransaction.Common into the class * Remove SqlTransaction.Common.cs * Cleanup the transaction after adding back the common partial. * Remove some <2005 condition that no longer applies * Make Save match exception handling pattern the others are using
1 parent e4cda4a commit a22bf28

File tree

8 files changed

+483
-711
lines changed

8 files changed

+483
-711
lines changed

src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj

+3-4
Original file line numberDiff line numberDiff line change
@@ -620,15 +620,15 @@
620620
<Compile Include="$(CommonSourceRoot)Microsoft\Data\SqlClient\SqlSymmetricKeyCache.cs">
621621
<Link>Microsoft\Data\SqlClient\SqlSymmetricKeyCache.cs</Link>
622622
</Compile>
623+
<Compile Include="$(CommonSourceRoot)Microsoft\Data\SqlClient\SqlTransaction.cs">
624+
<Link>Microsoft\Data\SqlClient\SqlTransaction.cs</Link>
625+
</Compile>
623626
<Compile Include="$(CommonSourceRoot)Microsoft\Data\SqlClient\SqlUdtInfo.cs">
624627
<Link>Microsoft\Data\SqlClient\SqlUdtInfo.cs</Link>
625628
</Compile>
626629
<Compile Include="$(CommonSourceRoot)Microsoft\Data\SqlClient\SqlUtil.cs">
627630
<Link>Microsoft\Data\SqlClient\SqlUtil.cs</Link>
628631
</Compile>
629-
<Compile Include="$(CommonSourceRoot)Microsoft\Data\SqlClient\SqlTransaction.Common.cs">
630-
<Link>Microsoft\Data\SqlClient\SqlTransaction.Common.cs</Link>
631-
</Compile>
632632
<Compile Include="$(CommonSourceRoot)Microsoft\Data\SqlClient\SSPI\NegotiateSSPIContextProvider.cs">
633633
<Link>Microsoft\Data\SqlClient\SSPI\NegotiateSSPIContextProvider.cs</Link>
634634
</Compile>
@@ -724,7 +724,6 @@
724724
<Compile Include="Microsoft\Data\SqlClient\SqlConnectionHelper.cs" />
725725
<Compile Include="Microsoft\Data\SqlClient\SqlDataReader.cs" />
726726
<Compile Include="Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs" />
727-
<Compile Include="Microsoft\Data\SqlClient\SqlTransaction.cs" />
728727
<Compile Include="Microsoft\Data\SqlClient\TdsParser.cs" />
729728
<Compile Include="Microsoft\Data\SqlClient\TdsParser.netcore.cs" />
730729
<Compile Include="Microsoft\Data\SqlClient\TdsParser.RegisterEncoding.cs" />

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlTransaction.cs

-304
This file was deleted.

src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj

+3-4
Original file line numberDiff line numberDiff line change
@@ -550,9 +550,6 @@
550550
<Compile Include="$(CommonSourceRoot)Microsoft\Data\SqlClient\Server\SqlRecordBuffer.cs">
551551
<Link>Microsoft\Data\SqlClient\Server\SqlRecordBuffer.cs</Link>
552552
</Compile>
553-
<Compile Include="$(CommonSourceRoot)Microsoft\Data\SqlClient\SqlTransaction.Common.cs">
554-
<Link>Microsoft\Data\SqlClient\SqlTransaction.Common.cs</Link>
555-
</Compile>
556553
<Compile Include="$(CommonSourceRoot)Microsoft\Data\SqlClient\Server\ValueUtilsSmi.cs">
557554
<Link>Microsoft\Data\SqlClient\Server\ValueUtilsSmi.cs</Link>
558555
</Compile>
@@ -793,6 +790,9 @@
793790
<Compile Include="$(CommonSourceRoot)Microsoft\Data\SqlClient\SqlSymmetricKeyCache.cs">
794791
<Link>Microsoft\Data\SqlClient\SqlSymmetricKeyCache.cs</Link>
795792
</Compile>
793+
<Compile Include="$(CommonSourceRoot)Microsoft\Data\SqlClient\SqlTransaction.cs">
794+
<Link>Microsoft\Data\SqlClient\SqlTransaction.cs</Link>
795+
</Compile>
796796
<Compile Include="$(CommonSourceRoot)Microsoft\Data\SqlClient\SqlUdtInfo.cs">
797797
<Link>Microsoft\Data\SqlClient\SqlUdtInfo.cs</Link>
798798
</Compile>
@@ -889,7 +889,6 @@
889889
<Compile Include="Microsoft\Data\SqlClient\SqlInternalConnectionTds.cs" />
890890
<Compile Include="Microsoft\Data\SqlClient\SqlSequentialStreamSmi.cs" />
891891
<Compile Include="Microsoft\Data\SqlClient\SqlSequentialTextReaderSmi.cs" />
892-
<Compile Include="Microsoft\Data\SqlClient\SqlTransaction.cs" />
893892
<Compile Include="Microsoft\Data\SqlClient\TdsParser.cs" />
894893
<Compile Include="Microsoft\Data\SqlClient\TdsParser.netfx.cs" />
895894
<Compile Include="Microsoft\Data\SqlClient\TdsParserStateObject.netfx.cs" />

0 commit comments

Comments
 (0)