다음을 통해 공유


ValuesExpression Class

Definition

An expression that represents a constant table in SQL, sometimes known as a table value constructor.

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

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

Constructors

ValuesExpression(String, IReadOnlyList<RowValueExpression>, IReadOnlyList<String>, IEnumerable<IAnnotation>)

Creates a new instance of the ValuesExpression class.

ValuesExpression(String, IReadOnlyList<RowValueExpression>, IReadOnlyList<String>)

Creates a new instance of the ValuesExpression class.

ValuesExpression(String, IReadOnlyList<RowValueExpression>, SqlParameterExpression, IReadOnlyList<String>, IReadOnlyDictionary<String,IAnnotation>)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

ValuesExpression(String, SqlParameterExpression, IReadOnlyList<String>)

Creates a new instance of the ValuesExpression class.

Properties

Alias

The alias assigned to this table source.

Annotations

An indexed collection of annotations associated with this table expression.

(Inherited from TableExpressionBase)
ColumnNames

The names of the columns contained in this table.

NodeType (Inherited from TableExpressionBase)
RowValues

The row values for this table.

Type (Inherited from TableExpressionBase)
ValuesParameter

A parameter containing the list of values. The parameterized list get expanded to the actual value before the query SQL is generated.

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.

Clone(String, ExpressionVisitor)

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

Clone(String, ExpressionVisitor)

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

(Inherited from TableExpressionBase)
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
GetRequiredAlias()

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

(Inherited from TableExpressionBase)
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)
Quote()

Quotes the expression; that is, returns an expression that, when evaluated, would construct an expression identical to this one. Used to generate code for precompiled queries, which reconstructs this expression.

Quote()

Quotes the expression; that is, returns an expression that, when evaluated, would construct an expression identical to this one. Used to generate code for precompiled queries, which reconstructs this expression.

(Inherited from TableExpressionBase)
Update(IReadOnlyList<RowValueExpression>, SqlParameterExpression)

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.

Update(IReadOnlyList<RowValueExpression>)

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.

Update(SqlParameterExpression)

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.

WithAlias(String)

Returns a copy of the current TableExpressionBase with the new provided alias.

WithAlias(String)

Returns a copy of the current TableExpressionBase with the new provided alias.

(Inherited from TableExpressionBase)
WithAnnotations(IReadOnlyDictionary<String,IAnnotation>)

Creates an object like this with specified annotations.

WithAnnotations(IReadOnlyDictionary<String,IAnnotation>)

Creates an object like this with specified annotations.

(Inherited from TableExpressionBase)

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