コード例 #1
0
 public PBaseObject(int id, PCollection ownerCollection, IPDataModel model)
 {
     this.Id = id;
     _attrs = new Dictionary<string, string>();
     _collects = new List<PCollection>();
     _ownerCollection = ownerCollection;
     Model = model;
     Templates = new PTemplates(this);
 }
コード例 #2
0
ファイル: PModel.cs プロジェクト: kindprojects/workstation
        public PModel(IPDBLink db, string modelCode, bool deferredLoad, PPlatform platform)
        {
            this._db = db;
            this._modelCode = modelCode;
            this._listObjects = new Dictionary<int, PBaseObject>();
            this.Templates = new PTemplates(null); // старье
            this.DeferredLoad = deferredLoad;
            this.Platform = platform;

            this.LoadModel(); // хз?
        }