TableExpression Class

Definition

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

public class TableExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase
public sealed class TableExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase
public sealed class TableExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase, Microsoft.EntityFrameworkCore.Query.SqlExpressions.IClonableTableExpressionBase
public sealed class TableExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase, Microsoft.EntityFrameworkCore.Query.SqlExpressions.IClonableTableExpressionBase, Microsoft.EntityFrameworkCore.Query.SqlExpressions.ITableBasedExpression
type TableExpression = class
    inherit TableExpressionBase
type TableExpression = class
    inherit TableExpressionBase
    interface IClonableTableExpressionBase
type TableExpression = class
    inherit TableExpressionBase
    interface IClonableTableExpressionBase
    interface ITableBasedExpression
Public Class TableExpression
Inherits TableExpressionBase
Public NotInheritable Class TableExpression
Inherits TableExpressionBase
Public NotInheritable Class TableExpression
Inherits TableExpressionBase
Implements IClonableTableExpressionBase
Public NotInheritable Class TableExpression
Inherits TableExpressionBase
Implements IClonableTableExpressionBase, ITableBasedExpression
Inheritance
Implements

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.

Alias

The alias assigned to this table source.

(Inherited from TableExpressionBase)
Name

The name of the table or view.

NodeType (Inherited from TableExpressionBase)
Schema

The schema of the table or view.

Table

The ITableBase associated with this table or view.

Type (Inherited from TableExpressionBase)

Methods

AddAnnotation(String, Object)

Adds an annotation to this object. Throws if an annotation with the specified name already exists.

(Inherited from TableExpressionBase)
Clone()

Creates a new object that is a copy of the current instance.

CreateWithAnnotations(IEnumerable<IAnnotation>)

Creates an object like this with specified annotations.

(Inherited from TableExpressionBase)
Equals(Object) System.Linq.Expressions.Expression.Equals(System.Object)
FindAnnotation(String)

Gets the annotation with the given name, returning null if it does not exist.

(Inherited from TableExpressionBase)
GetAnnotations()

Gets all annotations on the current object.

(Inherited from TableExpressionBase)
GetHashCode() System.Linq.Expressions.Expression.GetHashCode
Print(ExpressionPrinter)

Creates a printable string representation of the given expression using ExpressionPrinter.

Print(ExpressionPrinter)

Creates a printable string representation of the given expression using ExpressionPrinter.

(Inherited from TableExpressionBase)
PrintAnnotations(ExpressionPrinter)

Creates a printable string representation of annotations associated with the given expression using ExpressionPrinter.

(Inherited from TableExpressionBase)
VisitChildren(ExpressionVisitor) (Inherited from TableExpressionBase)

Explicit Interface Implementations

IPrintableExpression.Print(ExpressionPrinter)

Creates a printable string representation of the given expression using ExpressionPrinter.

(Inherited from TableExpressionBase)
ITableBasedExpression.Table

The ITableBase associated with given table source, if any.

Extension Methods

UnwrapJoin(TableExpressionBase)

If the given table is a JoinExpressionBase, returns the table it joins to. Otherwise, returns table.

Applies to