Exemplo n.º 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);
 }
Exemplo n.º 2
0
        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(); // хз?
        }