I have a sub-standard WPF application configured as follows: Views, ViewModels, Business Objects and Dals, with SQL Compact DB. The database is called through Linq2Sql. The application is single-user. (one bit per user).
Assuming that the exception occurs in Dal during the CRUD operation, or the user deleted the database where exception handling should be performed.
Also, if for some reason an exception occurs in the View / ViewModel, I do not want the system to crash. How should I handle this. Should I just inform the user of the error and recreate the View / ViewModel so that the user can continue. ViewModels only interact with other ViewModels through Messenging (for example, something needs to be updated).
source
share