Currently I'm using following pattern to get verification errors out of CurrentItem<T>
public List<string> ValidationErrors { get { var validationErrors = new List<string>(); if (this.CurrentItem != null) { validationErrors.AddRange((from errors in this.CurrentItem.EntityAspect.ValidationErrors select errors.Message).ToList()); } return validationErrors; } }
|
I want to make sure child items also covered, in case I do header/detail manipulation I want to see errors from "Order" and "OrderLine"
EDITED:
I know how to easily get all entities within manager but it might contain other records I don't care about. I really want to verify just "Graph" So, ideally I want to iterate only main item and it's childs/subchilds.
Edited by katit - 04-Feb-2013 at 5:13pm