Skip to content

Commit 9e11e79

Browse files
committed
First code review response
1 parent 02980de commit 9e11e79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlConnection.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@
2424
using Microsoft.Data.SqlClient.Diagnostics;
2525
using Microsoft.SqlServer.Server;
2626
#if NETFRAMEWORK
27+
using System.Runtime.CompilerServices;
2728
using System.Security.Permissions;
2829
using System.Security.Principal;
2930
#endif
3031

3132
#if NETFRAMEWORK
32-
[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("System.Data.DataSetExtensions, PublicKey=" + Microsoft.Data.SqlClient.AssemblyRef.EcmaPublicKeyFull)] // DevDiv Bugs 92166
33+
[assembly: InternalsVisibleTo("System.Data.DataSetExtensions, PublicKey=" + Microsoft.Data.SqlClient.AssemblyRef.EcmaPublicKeyFull)] // DevDiv Bugs 92166
3334
// NOTE: The current Microsoft.VSDesigner editor attributes are implemented for System.Data.SqlClient, and are not publicly available.
3435
// New attributes that are designed to work with Microsoft.Data.SqlClient and are publicly documented should be included in future.
3536
#endif
@@ -930,7 +931,7 @@ public int ServerProcessId
930931
{
931932
get
932933
{
933-
if ((State & (ConnectionState.Open | ConnectionState.Executing | ConnectionState.Fetching)) > 0)
934+
if ((State & (ConnectionState.Open | ConnectionState.Executing | ConnectionState.Fetching)) != 0)
934935
{
935936
return GetOpenTdsConnection().ServerProcessId;
936937
}

0 commit comments

Comments
 (0)