Table of Contents

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

type Type

The Type of the expression.

typeMapping RelationalTypeMapping

The 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

bool

Name

The name of the column.

public abstract string Name { get; }

Property Value

string

Table

The table from which column is being referenced.

public abstract TableExpressionBase Table { get; }

Property Value

TableExpressionBase

TableAlias

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

public abstract string TableAlias { get; }

Property Value

string

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

expressionPrinter ExpressionPrinter