This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I have a win forms application where I use a grid for data entry. I need a way of validating all entities in the uow before call save changes. cheers |
|
|
Calling SaveChanges will trigger validation for all entities before persisting, but if you want to explicitely check ahead of this you can enumerate the UnitOfWork instance and this will iterate over all entities which are attached to the UnitOfWork and you can then check .IsValid to check for any validation issues. e.g.
|
|