Share via


SqlFunctionExpression Class

Definition

An expression that represents a function call in a SQL tree.

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

public class SqlFunctionExpression : Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression
type SqlFunctionExpression = class
    inherit SqlExpression
Public Class SqlFunctionExpression
Inherits SqlExpression
Inheritance
SqlFunctionExpression

Constructors

SqlFunctionExpression(Expression, String, String, Boolean, IEnumerable<SqlExpression>, Boolean, Type, RelationalTypeMapping)
SqlFunctionExpression(SqlExpression, String, Boolean, Boolean, Type, RelationalTypeMapping)

Creates a new instance of the SqlFunctionExpression class which represents a niladic function which is invoked on an instance.

SqlFunctionExpression(SqlExpression, String, IEnumerable<SqlExpression>, Boolean, Boolean, IEnumerable<Boolean>, Type, RelationalTypeMapping)

Creates a new instance of the SqlFunctionExpression class which represents a function which is invoked on an instance.

SqlFunctionExpression(SqlExpression, String, String, IEnumerable<SqlExpression>, Boolean, Nullable<Boolean>, IEnumerable<Boolean>, Boolean, Type, RelationalTypeMapping)

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.

SqlFunctionExpression(String, Boolean, Type, RelationalTypeMapping)

Creates a new instance of the SqlFunctionExpression class which represents a built-in niladic function.

SqlFunctionExpression(String, IEnumerable<SqlExpression>, Boolean, IEnumerable<Boolean>, Type, RelationalTypeMapping)

Creates a new instance of the SqlFunctionExpression class which represents a built-in function.

SqlFunctionExpression(String, String, Boolean, Type, RelationalTypeMapping)

Creates a new instance of the SqlFunctionExpression class which represents a niladic function.

SqlFunctionExpression(String, String, IEnumerable<SqlExpression>, Boolean, IEnumerable<Boolean>, Type, RelationalTypeMapping)

Creates a new instance of the SqlFunctionExpression class which represents a function.

Properties

Arguments

The list of arguments of this function.

ArgumentsPropagateNullability

A list of bool values indicating whether individual argument propagate null to the result.

Instance

The instance on which this function is applied.

InstancePropagatesNullability

A bool value indicating if the instance propagates null to the result.

IsBuiltIn

A bool value indicating if the function is built-in.

IsNiladic

A bool value indicating if the function is niladic.

IsNullable

A bool value indicating if the function can return null result.

Name

The name of the function.

NodeType (Inherited from SqlExpression)
Schema

The schema in which the function is defined, if any.

Type (Inherited from SqlExpression)
TypeMapping

The RelationalTypeMapping associated with this expression.

(Inherited from SqlExpression)

Methods

ApplyTypeMapping(RelationalTypeMapping)

Applies supplied type mapping to this expression.

Equals(Object) System.Linq.Expressions.Expression.Equals(System.Object)
GetHashCode() System.Linq.Expressions.Expression.GetHashCode
Print(ExpressionPrinter)

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

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 SqlExpression)
Update(SqlExpression, IReadOnlyList<SqlExpression>, IReadOnlyList<Boolean>)

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(SqlExpression, IReadOnlyList<SqlExpression>)

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 SqlExpression)

Applies to