NullConditionalExpression Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use ConditionalExpression with null check instead
Expression representing null-conditional access. Logic in this file is based on https://github.com/bartdesmet/ExpressionFutures
public class NullConditionalExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
[System.Obsolete("Use ConditionalExpression with null check instead")]
public class NullConditionalExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
type NullConditionalExpression = class
inherit Expression
interface IPrintableExpression
[<System.Obsolete("Use ConditionalExpression with null check instead")>]
type NullConditionalExpression = class
inherit Expression
interface IPrintableExpression
Public Class NullConditionalExpression
Inherits Expression
Implements IPrintableExpression
- Inheritance
-
NullConditionalExpression
- Attributes
- Implements
Constructors
NullConditionalExpression(Expression, Expression) |
Creates a new instance of NullConditionalExpression. |
Properties
AccessOperation |
Expression representing access operation. |
Caller |
Expression representing potentially nullable caller that needs to be tested for it's nullability. |
CanReduce |
Indicates that the node can be reduced to a simpler node. If this returns true, Reduce() can be called to produce the reduced form. |
NodeType |
Gets the node type of this expression. |
Type |
Gets the static type of the expression that this expression represents. |
Methods
Equals(NullConditionalExpression) |
Determines whether the specified object is equal to the current object. |
Equals(Object) |
Determines whether the specified object is equal to the current object. |
GetHashCode() |
Serves as the default hash function. |
Print(ExpressionPrinter) | |
Reduce() |
Reduces this node to a simpler expression. If CanReduce returns true, this should return a valid expression. This method can return another node which itself must be reduced. |
ToString() |
Returns a textual representation of the Expression. |
Update(Expression, 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. |
Applies to
Entity Framework