예제 #1
0
        internal Item(Session Session, Database.IItem Item)
        {
            this._properties = new Dictionary <Model.PropertyType, Property>();
            this.Session     = Session;
            this.ItemType    = Item.ItemType;
            this.ItemID      = Item.ItemID;
            this.BranchID    = Item.BranchID;
            this.VersionID   = Item.VersionID;
            this.Branched    = Item.Branched;
            this.Versioned   = Item.Versioned;
            this.Superceded  = Item.Superceded;

            foreach (Database.IProperty prop in Item.Properties)
            {
                this._properties[prop.PropertyType] = new Property(this, prop.PropertyType, prop.Object);
            }
        }
예제 #2
0
 public Part(Model.Session Session, Database.IItem DatabaseItem)
     : base(Session, DatabaseItem)
 {
     this.Type = new PartTypes();
     this.Initialise(DatabaseItem);
 }