-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move to Shared for SqlDependency.cs #1299
Conversation
…r error due to variable name changes
I much prefer usings with scope. If the MS team agree I think we'd need to update the repo editor config to make it stop suggesting the implicitly scoped version. |
I have no preference as long as it's readable. |
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlDependency.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlDependency.cs
Outdated
Show resolved
Hide resolved
@lcheunglci can you address the conflict please? |
@lcheunglci There are some methods that can use body expressions, for lines 134, 183, 219, 465, 561, 576, 582, 734, 740 |
Relates to #1261 . I merged the netfx version of SqlDependency into the netcore version and move it to the shared src. I was originally going to allow the resource attributes but that would require an update to the StringsHelper which is currently being merged in #1288 so I left it with the ifdef NETFRAMEWORK, but once that PR is merged, I could revised this. Also I updated the file to conform the coding style but I left two IDE0063 info messages because I found the using statement in line 512 and 545 more readable, but the intellisense recommended change is with C# 8 syntax without the extra scope body, so if that is preferred I am more than happy to change it.