Represents a column reference in the query.
Inheritance: DbExpression
コード例 #1
0
        /// <summary>
        /// Translates the <paramref name="columnExpression"/> into a string representation.
        /// </summary>
        /// <param name="columnExpression">The <see cref="DbColumnExpression"/> to translate.</param>
        /// <returns><see cref="string"/></returns>
        protected override DbExpression VisitColumnExpression(DbColumnExpression columnExpression)
        {
            var sqlFragment = QuoteIdentifier(columnExpression.ColumnName);

            return(ExpressionFactory.Sql(sqlFragment));
        }
コード例 #2
0
 /// <summary>
 /// Translates the <paramref name="columnExpression"/> into a string representation.
 /// </summary>
 /// <param name="columnExpression">The <see cref="DbColumnExpression"/> to translate.</param>
 /// <returns><see cref="string"/></returns>
 protected override DbExpression VisitColumnExpression(DbColumnExpression columnExpression)
 {
     var sqlFragment = QuoteIdentifier(columnExpression.ColumnName);
     return ExpressionFactory.Sql(sqlFragment);
 }
コード例 #3
0
 /// <summary>
 /// Translates the <paramref name="columnExpression"/> into a string representation.
 /// </summary>
 /// <param name="columnExpression">The <see cref="DbColumnExpression"/> to translate.</param>
 /// <returns><see cref="DbExpression"/></returns>
 protected virtual DbExpression VisitColumnExpression(DbColumnExpression columnExpression)
 {
     return(columnExpression);
 }
コード例 #4
0
 /// <summary>
 /// Translates the <paramref name="columnExpression"/> into a string representation.
 /// </summary>
 /// <param name="columnExpression">The <see cref="DbColumnExpression"/> to translate.</param>
 /// <returns><see cref="DbExpression"/></returns>
 protected virtual DbExpression VisitColumnExpression(DbColumnExpression columnExpression)
 {
     return columnExpression;
 }