Class ColumnExpression
- Namespace
- Microsoft.EntityFrameworkCore.Query.SqlExpressions
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
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.
public abstract class ColumnExpression : SqlExpression, IPrintableExpression
- Inheritance
-
ColumnExpression
- Implements
-
IPrintableExpression
- Inherited Members
Constructors
ColumnExpression(Type, RelationalTypeMapping?)
Creates a new instance of the ColumnExpression class.
protected ColumnExpression(Type type, RelationalTypeMapping? typeMapping)
Parameters
typeTypeThe Type of the expression.
typeMappingRelationalTypeMappingThe RelationalTypeMapping associated with the expression.
Properties
IsNullable
The bool value indicating if this column can have null values.
public abstract bool IsNullable { get; }
Property Value
Name
The name of the column.
public abstract string Name { get; }
Property Value
Table
The table from which column is being referenced.
public abstract TableExpressionBase Table { get; }
Property Value
TableAlias
The alias of the table from which column is being referenced.
public abstract string TableAlias { get; }
Property Value
Methods
MakeNullable()
Makes this column nullable.
public abstract ColumnExpression MakeNullable()
Returns
- ColumnExpression
A new expression which has IsNullable property set to true.
Print(ExpressionPrinter)
protected override void Print(ExpressionPrinter expressionPrinter)
Parameters
expressionPrinterExpressionPrinter