Ejemplo n.º 1
0
        public void AddStatements(string script, string filePath)
        {
            lock (_cache)
            {
                if (!_cache.ContainsKey(filePath))
                {
                    _cache[filePath] = new QueryCostCacheEntry();
                }

                var cacheEntry = _cache[filePath];

                //string checkSum = GetChecksum(filePath);

                //if (checkSum != cacheEntry.FileChecksum)
                //{
                cacheEntry.Statements = BuildStatements(filePath);
                //   cacheEntry.FileChecksum = checkSum;
                //}
            }
        }
Ejemplo n.º 2
0
        public void AddStatements(string script, string filePath)
        {
            lock (_cache)
            {
                if (!_cache.ContainsKey(filePath))
                {
                    _cache[filePath] = new QueryCostCacheEntry();
                }

                var cacheEntry = _cache[filePath];

                //string checkSum = GetChecksum(filePath);

                //if (checkSum != cacheEntry.FileChecksum)
                //{
                    cacheEntry.Statements = BuildStatements(filePath);
                 //   cacheEntry.FileChecksum = checkSum;
                //}

            }
        }