Table of Contents

Class TableExpression

Namespace
Microsoft.EntityFrameworkCore.Query.SqlExpressions
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

An expression that represents a table or view in a SQL tree.

public sealed class TableExpression : TableExpressionBase, IPrintableExpression, IClonableTableExpressionBase, ITableBasedExpression
Inheritance
TableExpression
Implements
IPrintableExpression
Inherited Members

Remarks

This is a simple wrapper around a table and schema name. Instances of this type cannot be constructed by application or database provider code. If this is a problem for your application or provider, then please file an issue at github.com/dotnet/efcore.

Properties

Alias

The alias assigned to this table source.

public override string? Alias { get; }

Property Value

string

Name

The name of the table or view.

public string Name { get; }

Property Value

string

Schema

The schema of the table or view.

public string? Schema { get; }

Property Value

string

Table

The ITableBase associated with this table or view.

public ITableBase Table { get; }

Property Value

ITableBase

Methods

Clone()

public TableExpressionBase Clone()

Returns

TableExpressionBase

CreateWithAnnotations(IEnumerable<IAnnotation>)

protected override TableExpressionBase CreateWithAnnotations(IEnumerable<IAnnotation> annotations)

Parameters

annotations IEnumerable<IAnnotation>

Returns

TableExpressionBase

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Print(ExpressionPrinter)

protected override void Print(ExpressionPrinter expressionPrinter)

Parameters

expressionPrinter ExpressionPrinter