Skip to content
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

Merged
merged 10 commits into from Oct 15, 2021

Conversation

lcheunglci
Copy link
Contributor

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.

@Wraith2
Copy link
Contributor

Wraith2 commented Sep 28, 2021

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.

@DavoudEshtehari DavoudEshtehari added the ➕ Code Health Changes related to source code improvements label Sep 30, 2021
@DavoudEshtehari DavoudEshtehari added this to In progress in SqlClient v4.0 via automation Sep 30, 2021
@DavoudEshtehari DavoudEshtehari added this to the 4.0.0-preview3 milestone Sep 30, 2021
@johnnypham
Copy link
Contributor

johnnypham commented Oct 1, 2021

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.

@JRahnama
Copy link
Member

JRahnama commented Oct 8, 2021

@lcheunglci can you address the conflict please?

@JRahnama JRahnama moved this from In progress to Review in progress in SqlClient v4.0 Oct 8, 2021
@Kaur-Parminder
Copy link
Contributor

Kaur-Parminder commented Oct 13, 2021

@lcheunglci There are some methods that can use body expressions, for lines 134, 183, 219, 465, 561, 576, 582, 734, 740

SqlClient v4.0 automation moved this from Review in progress to Reviewer approved Oct 13, 2021
@JRahnama JRahnama merged commit bc4046f into dotnet:main Oct 15, 2021
SqlClient v4.0 automation moved this from Reviewer approved to Done Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
➕ Code Health Changes related to source code improvements
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

6 participants