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; } }
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); } }