예제 #1
0
        public PModel(IStorage rep, string model, bool deferredLoad)
        {
            this.objectsIndex = new Dictionary<int,IPObject>();
            int objectId = rep.RootObjectId(model, -1);
            if (objectId == -1)
                throw new Exception(string.Format("Модель с кодом \"{0}\" не найдена", model));
            Root = new PObject(rep, objectId, objectsIndex, deferredLoad);

            _storage = rep;
        }