Simplify SqlException config structure in appsettings.json
Removed the "ErrorMessages" wrapper from the SqlException section, placing "SqlExceptionNumber" directly under "SqlException". No changes to the exception numbers themselves. Improved readability and clarity of the configuration.
This commit is contained in:
@@ -9,10 +9,8 @@
|
|||||||
"MaxConcurrentInvocations": 5
|
"MaxConcurrentInvocations": 5
|
||||||
},
|
},
|
||||||
"SqlException": {
|
"SqlException": {
|
||||||
"ErrorMessages": {
|
|
||||||
// https://learn.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlexception.number
|
// https://learn.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlexception.number
|
||||||
"SqlExceptionNumber": [ 515 , 547, 2601, 2627]
|
"SqlExceptionNumber": [ 515, 547, 2601, 2627 ]
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"AddedWho": "ReC.API",
|
"AddedWho": "ReC.API",
|
||||||
"FakeProfileId": 2
|
"FakeProfileId": 2
|
||||||
|
|||||||
Reference in New Issue
Block a user