Ejemplo n.º 1
0
        public IRelationship Create(IRelationshipType Type, Guid ItemID, Guid BranchID, Guid VersionID, Int64 Branched, Int64 Versioned, IItem Parent, IItem Child, ITransaction Transaction)
        {
            Relationship rel = new Relationship((RelationshipType)Type, ItemID, BranchID, VersionID, Branched, Versioned, (Item)Parent, (Item)Child);

            this.ItemCache[rel.VersionID] = rel;
            return(rel);
        }
Ejemplo n.º 2
0
        public IRelationshipType CreateRelationshipType(IRelationshipType Base, String Name, IItemType ParentType, IItemType ChildType)
        {
            RelationshipType reltype = new RelationshipType((RelationshipType)Base, Name, ParentType, ChildType);

            this.ItemTypesCache[Name] = reltype;
            return(reltype);
        }