Skip to content

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.

@DavoudEshtehari DavoudEshtehari added the Code Health 💊 Issues/PRs that are targeted to source code quality improvements. label Oct 6, 2021
@DavoudEshtehari DavoudEshtehari added this to the 4.0.0-preview3 milestone Oct 6, 2021
Copy link
Contributor

@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 💊 Issues/PRs that are targeted to source code quality improvements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants