Why I can't catch SqlException on SaveChanges() method of Entity Framework

c# entity-framework try-catch

Question

I putSaveChanges() I tried to catch the SqlExeption method inside a try/catch block, but I was unsuccessful.

try
 { 
     db.SaveChanges();
 }
 catch (Exception ex)
 {
 }
1
12
7/25/2014 2:17:32 PM

Popular Answer

ZZZ_tmp
14
7/25/2014 2:38:18 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow