Hi, What happened to the configuration items 'AutoValidation' and 'ValidationMode'? Regards Paul |
Validation API was reworked in 5.0 and this configuration items was removed. Entities validates on transaction committing, on Session.SaveChanges() and on your demand by session.Validate(). If you need validate some fields immediately then you can set property IsImmediate to true for all constraints of this field. For example,
All constraints in this example was marked as immediate and DO will validate them immediately after changing. |