internal static bool TryGenerateKey(DbExpression tree, out string key)
 {
     var keyGen = new ExpressionKeyGen();
     try
     {
         tree.Accept(keyGen);
         key = keyGen._key.ToString();
         return true;
     }
     catch (NotSupportedException)
     {
         key = null;
         return false;
     }
 }
Exemplo n.º 2
0
        internal static bool TryGenerateKey(DbExpression tree, out string key)
        {
            var keyGen = new ExpressionKeyGen();

            try
            {
                tree.Accept(keyGen);
                key = keyGen._key.ToString();
                return(true);
            }
            catch (NotSupportedException)
            {
                key = null;
                return(false);
            }
        }