阅读背景:

.NET SqlClient错误号枚举类型

来源:互联网 

I have an exception handler for the type SqlException and I'm looking at the SqlException.Number property of the exception to determine if a dead-lock occurred (1205). I'm currious, instead of writing SqlException.Number == 1205, is there an enum I can refer to that would produce something similar to SqlException.Number == SqlExceptionNumberEnum.DeadLockVictim?I have an exception handler for the type SqlExc




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: