Exemplo n.º 1
0
        void CreateContext()
        {
            var dbFolderPath = Path.Combine(_cacheFolderBasePath, ProductCode.ToString());

            Directory.CreateDirectory(dbFolderPath);

            _ctxManage = new ManageSqliteDbContext("data source=" + Path.Combine(dbFolderPath, "MANAGE.db3"));
            _ctxExec   = new ExecutionsDbSqliteContext("data source=" + Path.Combine(dbFolderPath, "EXEC.db3"));
            _ctxMarker = new MarkerSqliteDbContext("data source=" + Path.Combine(dbFolderPath, "MARKER.db3"));
        }