public List <string> GetAllParentNames(CslaObjectType cslaType) { var lst = new List <string>(); foreach (var obj in this) { if (RelationRulesEngine.IsParentAllowed(obj.ObjectType, cslaType)) { lst.Add(obj.ObjectName); } } return(lst); }
public List <string> GetAllParentNames(CslaObjectInfo info) { var lst = new List <string>(); foreach (CslaObjectInfo obj in this) { if (RelationRulesEngine.IsParentAllowed(obj.ObjectType, info.ObjectType) && obj != info) { lst.Add(obj.ObjectName); } } return(lst); }