bool TryGetParentRelations(Item item, out IList <Relation> relations, Relation_Store_ParentRelation stoPRels, Relation_StoreX_ParentRelation stoXPRels) { if (item.GetOwner().IsExternal) { if (stoXPRels.TryGetChildren(item, out IList <Relation> txRelations)) { relations = new List <Relation>(txRelations); return(true); } relations = null; return(false); } return(stoPRels.TryGetChildren(item.GetOwner(), out relations)); }
protected override IList <Relation> GetChildItems() => StoreX_ParentRelation.TryGetChildren(Item.GetOwner(), out IList <Relation> list) ? list : new Relation[0];