dotnet / dotnet/SqlClient

Error info is lost during serialization

Open
#2,150 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
989
Forks
340
Avg merge
4d 19h
Merged PRs (30d)
72

Description

`SqlException` loses essential information about error, like error number, when goes through serialization.
Please consider saving relevant info to survive serialization round-trip.

See https://github.com/dotnet/SqlClient/blob/0b8680c1cd2057f81b5b5aa26972367bf407a7d4/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlException.cs#L56

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.