LLBLGen 2.0.7.424 / ASP.net 2 / Adapter
Hi!
I've just realized that Validator classes are called AFTER the data has been inserted in the database. I found this by having a data consistency check in a validator class and in the DB (unique key constraint). The thrown exception comes from the db and not from the validator.. My question now is in what sequence is data saved. Is it like this:
- Open transaction
- Execute INSERT or UPDATE
-
Execute ValidateEntityBeforeSave in Validator class
--> this may change the data again.
- Execute another UPDATE statement that writes the changes done in the Validator (if there are some).
- Commit transaction
Is my understanding correct?