Represents the result of translating a DbExpression tree.
 /// <summary>
 /// Translates the <paramref name="dbExpression"/> into a <see cref="DbTranslateResult"/> instance.
 /// </summary>
 /// <param name="dbExpression">The <see cref="DbExpression"/> to translate.</param>
 /// <returns><see cref="DbTranslateResult"/></returns>
 public virtual DbTranslateResult Translate(DbExpression dbExpression)
 {
     Parameters.Clear();
     var sqlExpression = Visit(dbExpression);
     var translateResult = new DbTranslateResult(((DbSqlExpression)sqlExpression).Sql,Parameters,_providerFactory);
     return translateResult;
 }
        /// <summary>
        /// Translates the <paramref name="dbExpression"/> into a <see cref="DbTranslateResult"/> instance.
        /// </summary>
        /// <param name="dbExpression">The <see cref="DbExpression"/> to translate.</param>
        /// <returns><see cref="DbTranslateResult"/></returns>
        public virtual DbTranslateResult Translate(DbExpression dbExpression)
        {
            Parameters.Clear();
            var sqlExpression   = Visit(dbExpression);
            var translateResult = new DbTranslateResult(((DbSqlExpression)sqlExpression).Sql, Parameters, _providerFactory);

            return(translateResult);
        }