0

I'm trying to catch SQL Server CE exceptions with EF, however EF seems to swallow all exceptions including UpdateException, SqlException etc.

The only exception I could catch is the general Exception.

Is there a way to catch SqlException from SQL Server CE including the error numbers?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Sin5k4
  • 1,556
  • 7
  • 33
  • 57
  • the similar question below: http://stackoverflow.com/questions/13189463/handles-sql-exception-from-entity-framework – Pravesh Pesswani Aug 21 '13 at 08:54
  • 1
    http://stackoverflow.com/questions/8645233/entity-framework-4-2-getting-proper-database-errors?lq=1 this specific question did it for me actually,cheers. – Sin5k4 Aug 21 '13 at 09:05

0 Answers0