You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// see https://docs.microsoft.com/en-us/sql/relational-databases/errors-events/database-engine-events-and-errors
41
-
// i.e. "Cannot insert duplicate key row in object 'dbo.Host' with unique index 'IX_Host_Hostname'. The duplicate key value is (georg-nuc). The statement has been terminated."
42
-
when(dbue.InnerExceptionisSqlExceptionsqlEx&&
43
-
(sqlEx.Number==2601||sqlEx.Number==2627))
43
+
// handle tsql
44
+
// see https://docs.microsoft.com/en-us/sql/relational-databases/errors-events/database-engine-events-and-errors
45
+
// i.e. "Cannot insert duplicate key row in object 'dbo.Host' with unique index 'IX_Host_Hostname'. The duplicate key value is (georg-nuc). The statement has been terminated."
46
+
when(dbue.InnerExceptionisSqlExceptionsqlEx&&
47
+
(sqlEx.Number==2601||sqlEx.Number==2627))
44
48
{
45
49
// otherwise this host would be added again when further using the same DbContext
0 commit comments