Partilhar via


ColumnExpression Class

Definition

An expression that represents a column in a SQL tree.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

[System.Diagnostics.DebuggerDisplay("{DebuggerDisplay(),nq}")]
public class ColumnExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
[System.Diagnostics.DebuggerDisplay("{DebuggerDisplay(),nq}")]
public sealed class ColumnExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
[System.Diagnostics.DebuggerDisplay("{DebuggerDisplay(),nq}")]
public abstract class ColumnExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
[System.Diagnostics.DebuggerDisplay("{TableAlias}.{Name}")]
public abstract class ColumnExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
[System.Diagnostics.DebuggerDisplay("{TableAlias}.{Name}")]
public class ColumnExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
[<System.Diagnostics.DebuggerDisplay("{DebuggerDisplay(),nq}")>]
type ColumnExpression = class
    inherit SqlExpression
[<System.Diagnostics.DebuggerDisplay("{TableAlias}.{Name}")>]
type ColumnExpression = class
    inherit SqlExpression
Public Class ColumnExpression
Inherits SqlExpression
Public NotInheritable Class ColumnExpression
Inherits SqlExpression
Public MustInherit Class ColumnExpression
Inherits SqlExpression
Inheritance
ColumnExpression
Attributes

Constructors

ColumnExpression(String, String, Type, RelationalTypeMapping, Boolean)

Creates a new instance of the ColumnExpression class.

ColumnExpression(Type, RelationalTypeMapping)

Creates a new instance of the ColumnExpression class.

Properties

IsNullable

The bool value indicating if this column can have null values.

Name

The name of the column.

NodeType (Inherited from SqlExpression)
Table

The table from which column is being referenced.

TableAlias

The alias of the table from which column is being referenced.

Type (Inherited from SqlExpression)
TypeMapping

The RelationalTypeMapping associated with this expression.

(Inherited from SqlExpression)

Methods

ApplyTypeMapping(RelationalTypeMapping)

Applies supplied type mapping to this expression.

Equals(Object) System.Linq.Expressions.Expression.Equals(System.Object)
Equals(Object) (Inherited from SqlExpression)
GetHashCode() System.Linq.Expressions.Expression.GetHashCode
GetHashCode() (Inherited from SqlExpression)
MakeNullable()

Makes this column nullable.

Print(ExpressionPrinter)

Creates a printable string representation of the given expression using ExpressionPrinter.

Print(ExpressionPrinter)

Creates a printable string representation of the given expression using ExpressionPrinter.

(Inherited from SqlExpression)
Quote() System.Linq.Expressions.Expression.Quote
Quote()

Quotes the expression; that is, returns an expression that, when evaluated, would construct an expression identical to this one. Used to generate code for precompiled queries, which reconstructs this expression.

(Inherited from SqlExpression)
ToString()

Returns a textual representation of the Expression.

VisitChildren(ExpressionVisitor)

Reduces the node and then calls the visitor delegate on the reduced expression. The method throws an exception if the node is not reducible.

VisitChildren(ExpressionVisitor) (Inherited from SqlExpression)

Explicit Interface Implementations

IPrintableExpression.Print(ExpressionPrinter)

Creates a printable string representation of the given expression using ExpressionPrinter.

(Inherited from SqlExpression)

Applies to