internal void AddQueryDependedObject(Expression expr, SqlQueryDependentAttribute attr) { if (_queryDependedObjects.ContainsKey(expr)) { return; } var prepared = attr.PrepareForCache(expr); _queryDependedObjects.Add(expr, prepared); }
internal void AddQueryDependedObject(Expression expression, SqlQueryDependentAttribute attr) { foreach (var expr in attr.SplitExpression(expression)) { if (_queryDependedObjects.ContainsKey(expr)) { continue; } var prepared = attr.PrepareForCache(expr); _queryDependedObjects.Add(expr, prepared); } }