コード例 #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;
                //}
            }
        }
コード例 #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;
                //}

            }
        }