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.

This class is not publicly constructable. If this is a problem for your application or provider, then please file an issue at https://github.com/dotnet/efcore.

public sealed class ColumnExpression : SqlExpression, IPrintableExpression
Inheritance
ColumnExpression
Implements
IPrintableExpression
Inherited Members

Properties

IsNullable

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

public bool IsNullable { get; }

Property Value

bool

Name

The name of the column.

public string Name { get; }

Property Value

string

Table

The table from which column is being referenced.

public TableExpressionBase Table { get; }

Property Value

TableExpressionBase

Methods

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

MakeNullable()

Makes this column nullable.

public 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

VisitChildren(ExpressionVisitor)

protected override Expression VisitChildren(ExpressionVisitor visitor)

Parameters

visitor ExpressionVisitor

Returns

Expression