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
Name
The name of the table or view.
public string Name { get; }
Property Value
Schema
The schema of the table or view.
public string? Schema { get; }
Property Value
Table
The ITableBase associated with this table or view.
public ITableBase Table { get; }
Property Value
Methods
Clone()
public TableExpressionBase Clone()
Returns
CreateWithAnnotations(IEnumerable<IAnnotation>)
protected override TableExpressionBase CreateWithAnnotations(IEnumerable<IAnnotation> annotations)
Parameters
annotations
IEnumerable<IAnnotation>
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
Print(ExpressionPrinter)
protected override void Print(ExpressionPrinter expressionPrinter)
Parameters
expressionPrinter
ExpressionPrinter