Catching SQL unique key exceptions in .NET

后端 未结 4 2062
自闭症患者
自闭症患者 2020-12-28 21:40

I was wondering if anyone had a more elegant way to check for unique key exceptions from SQL in .NET other than parsing the error message? Right now I am calling the sproc

4条回答
提交回复
热议问题