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

Update obsolete api calls in .NET 6 #1401

Merged
merged 2 commits into from
Nov 23, 2021
Merged

Update obsolete api calls in .NET 6 #1401

merged 2 commits into from
Nov 23, 2021

Conversation

@@ -348,8 +348,9 @@ internal static byte[] DecryptDataUsingAED(byte[] encryptedCellBlob, byte[] key,
return decryptedData;
}

#if NETFRAMEWORK
/// <summary>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This method is only called in netfx. In net5, accessing the PrivateKey property throws an exception. Now in net6, it won't even compile, so we can just compile it for netfx.

@DavoudEshtehari
Copy link
Member

I found more usages should be updated. Check from here.

@johnnypham
Copy link
Contributor Author

I found more usages should be updated. Check from here.

Updated those too.

@johnnypham johnnypham merged commit 6c6c76c into dotnet:main Nov 23, 2021
@johnnypham johnnypham deleted the net6 branch November 24, 2021 17:54
DavoudEshtehari added a commit to DavoudEshtehari/SqlClient that referenced this pull request Jan 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants