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 into Shared for SqlError.cs #1322

Merged
merged 11 commits into from
Jan 19, 2022

Conversation

lcheunglci
Copy link
Contributor

Relates to #1261 . Merged netfx into netcore for SqlError.cs and move it into shared src and updated the references in the csprojs. I did notice the SqlError in netfx uses the [Serializable] attribute for the class, and has 2 fields that are marked as [System.Runtime.Serialization.OptionalField] with a version number, but in netcore, they've all been switched over to auto properties so they don't get serialized anyway. I ran the functional tests and manual tests for netfx and it seems to be pass and didn't notice any issues, so hopefully we don't need to use them.

Copy link
Member

@DavoudEshtehari DavoudEshtehari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the behavior of a public API would cause a breaking change. I think it'd better keep it as same as before and using the OptionalField attribute if we didn't want to announce a breaking change here.
I suggest applying the same behavior for netcore too.

@lcheunglci
Copy link
Contributor Author

I noticed there's some compiler error in compiling the new SqlErrorTest in NET5 because the binary serialization is obsolete, I have a fix to that in the next commit

@cheenamalhotra cheenamalhotra removed this from the 4.0.0-preview3 milestone Oct 19, 2021
@JRahnama JRahnama added this to the 5.0.0-preview1 milestone Dec 7, 2021
@johnnypham johnnypham merged commit c9d59d8 into dotnet:main Jan 19, 2022
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
None yet
Development

Successfully merging this pull request may close these issues.

6 participants