Represents a column reference in the query.
Наследование: 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));
        }
 /// <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);
 }
 /// <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;
 }