Open edwardneal opened 1 day ago
Attention: Patch coverage is 36.36364%
with 7 lines
in your changes missing coverage. Please review.
Project coverage is 72.62%. Comparing base (
1b9df10
) to head (2b4b93c
).
Files with missing lines | Patch % | Lines |
---|---|---|
...rc/Microsoft/Data/SqlClient/SqlClientPermission.cs | 30.00% | 7 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
🚨 Try these New Features:
This PR removes the implementation of the public
SqlClientPermission
andSqlClientPermissionAttribute
types, obsoleting them with the message "Code Access Security is not supported or honored by the runtime." The SqlClientPermission CAS behaviour now aligns with the rest of .NET Framework 4.0+ and .NET Core.CAS is still present in various places throughout the library, but none of these are public. A subsequent PR can remove these references, they looked like they'd make this one harder to review.
/cc @benrr101 - this eliminates the need to merge
DBConnectionString
andNameValuePermission
: these types are internal, and unreferenced after this PR is merged. I'm planning to delete them. I've not got any strong opinions on how to tackle the merge ofSqlClientPermission
andSqlClientPermissionAttribute
though; it seems odd to merge already-obsolete classes, but it's a divergence in the API surface to leave them apart.