views:

14

answers:

0

Is there anyway of telling the underlying cause of an EntityError? The SqlException has a 'Number' field you could map to a deadlock, timeout, connect error etc..

For example :-

((SqlException)e).Number == -1 //Connect Error

Thanks in advance.