Skip to content

Commit ac8aa33

Browse files
committed
Move SNIErrorDetails to netcore file
1 parent 8875e39 commit ac8aa33

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,6 @@
2525

2626
namespace Microsoft.Data.SqlClient
2727
{
28-
29-
internal struct SNIErrorDetails
30-
{
31-
public string errorMessage;
32-
public uint nativeError;
33-
public uint sniErrorNumber;
34-
public int provider;
35-
public uint lineNumber;
36-
public string function;
37-
public Exception exception;
38-
}
39-
4028
// The TdsParser Object controls reading/writing to the netlib, parsing the tds,
4129
// and surfacing objects to the user.
4230
internal sealed partial class TdsParser
@@ -1926,8 +1914,6 @@ internal void PrepareResetConnection(bool preserveTransaction)
19261914
_fPreserveTransaction = preserveTransaction;
19271915
}
19281916

1929-
1930-
19311917
internal bool Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
19321918
{
19331919
bool syncOverAsync = stateObj._syncOverAsync;

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ namespace Microsoft.Data.SqlClient
1010
{
1111
internal sealed partial class TdsParser
1212
{
13+
internal struct SNIErrorDetails
14+
{
15+
public string errorMessage;
16+
public uint nativeError;
17+
public uint sniErrorNumber;
18+
public int provider;
19+
public uint lineNumber;
20+
public string function;
21+
public Exception exception;
22+
}
23+
1324
internal struct ReliabilitySection
1425
{
1526
/// <summary>

0 commit comments

Comments
 (0)