When raising an exception inside an “in-transation” data directive, the message is showing as an inner exception. I would like the message to display in the main error dialog and not in the details view. Is this a setting somewhere?
Method Directives:
· Pre, Post and Base processing logic
· Access to BOs
· Ideal place for Validations / Exceptions / Data Changes
In-Tran:
· Executes after standard Entity Framework data triggers
· Executes within a transaction, as a part of the trigger pipeline
· Immediately processes affected row
· Processes one row at a time (two rows for update operation (RowMod = “” is old row)
· Can change data on save
— The In-Tran should never if it can throw an exception, it is very very expensive rollback.
· You shouldnt access BOs in here!
Standard:
· Executes when service method call has completed
· Executes only if service method completes without exception
· Processes batch of affected rows at once
· Does not affect data save
· Ideal place for integration operations (Audits, Email, Logging, Notifications, API)