public LiveDbProvider(string path)
        {
            if (Directory.Exists(path) == false)
            {
                var model    = new DocumentNodeModel();
                var settings = new EngineSettings(path);

                LiveDomain.Core.Engine.Create(model, settings);
            }
            liveDbEngine      = LiveDomain.Core.Engine.Load <DocumentNodeModel>(path);
            nodeTreeIsUpdated = true;
        }
示例#2
0
        public LiveDbProvider(string path)
        {
            if (Directory.Exists(path) == false)
            {
                var model = new DocumentNodeModel();
                var settings = new EngineSettings(path);

                LiveDomain.Core.Engine.Create(model, settings);

            }
            liveDbEngine = LiveDomain.Core.Engine.Load<DocumentNodeModel>(path);
            nodeTreeIsUpdated = true;
        }