DbComparisonExpression Class
Represents a comparison operation applied to two arguments. Equality, greater than, greater than or equal, less than, less than or equal, and inequality are comparison operations. This class cannot be inherited.
System.Data.Common.CommandTrees::DbExpression
System.Data.Common.CommandTrees::DbBinaryExpression
System.Data.Common.CommandTrees::DbComparisonExpression
Assembly: System.Data.Entity (in System.Data.Entity.dll)
The DbComparisonExpression type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ExpressionKind | Gets the kind of the expression, which indicates the operation of this expression. (Inherited from DbExpression.) |
![]() | Left | Gets or sets the DbExpression that defines the left argument. (Inherited from DbBinaryExpression.) |
![]() | ResultType | Gets the type metadata for the result type of the expression. (Inherited from DbExpression.) |
![]() | Right | Gets or sets the DbExpression that defines the right argument. (Inherited from DbBinaryExpression.) |
| Name | Description | |
|---|---|---|
![]() | Accept(DbExpressionVisitor) | Implements the visitor pattern for expressions that do not produce a result value. (Overrides DbExpression::Accept(DbExpressionVisitor).) |
![]() | Accept<TResultType>(DbExpressionVisitor<TResultType>) | Implements the visitor pattern for expressions that produce a result value of a specific type. (Overrides DbExpression::Accept<TResultType>(DbExpressionVisitor<TResultType>).) |
![]() | Accept<TResultType>(DbExpressionVisitor<TResultType>) | Implements the visitor pattern for expressions that produce a result value of a specific type. (Inherited from DbExpression.) |
![]() | Equals | Determines whether the specified Object is equal to the current DbExpression instance. (Inherited from DbExpression.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for the type. (Inherited from DbExpression.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
The DbComparisonExpression class requires that its arguments have a common result type. This result type must be equality comparable for Equals and NotEquals; order comparable for GreaterThan and LessThan; and both for GreaterThanOrEquals and LessThanOrEquals.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
