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;
     }
 }
示例#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);
            }
        }