Exception to handle while working with Entity Framework 6

entity-framework-6 exception-handling

Accepted Answer

        catch (DbUpdateConcurrencyException ex) {

          }
        catch (DbUpdateException ex) { 

         }
        catch (DbEntityValidationException ex) {

         }
        catch (SqlException ex) { 

         }
        catch (Exception Ex)
        {

        }
2
11/6/2017 11:01:19 AM


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