Share via


FromSqlExpression Class

Definition

An expression that represents a subquery table source with user-provided custom SQL.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

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

Constructors

FromSqlExpression(ITableBase, String, Expression)

Creates a new instance of the FromSqlExpression class.

FromSqlExpression(String, Expression, String)
Obsolete.

Creates a new instance of the FromSqlExpression class.

FromSqlExpression(String, String, Expression)

Creates a new instance of the FromSqlExpression class.

Properties

Alias

The alias assigned to this table source.

Alias

The alias assigned to this table source.

(Inherited from TableExpressionBase)
Arguments

The user-provided parameters passed to the custom SQL.

NodeType (Inherited from TableExpressionBase)
Sql

The user-provided custom SQL for the table source.

Table

The ITableBase associated with given table source if any, null otherwise.

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.

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.

PrintAnnotations(ExpressionPrinter)

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

(Inherited from TableExpressionBase)
Update(Expression)

Creates a new expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.

VisitChildren(ExpressionVisitor)

Reduces the node and then calls the visitor delegate on the reduced expression. The method throws an exception if the node is not reducible.

Explicit Interface Implementations

IPrintableExpression.Print(ExpressionPrinter)

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

(Inherited from TableExpressionBase)

Extension Methods

UnwrapJoin(TableExpressionBase)

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

Applies to