Class SetOperationBase
- Namespace
- Microsoft.EntityFrameworkCore.Query.SqlExpressions
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
An expression that represents a set operation between two table sources.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public abstract class SetOperationBase : TableExpressionBase, IPrintableExpression
- Inheritance
-
SetOperationBase
- Implements
-
IPrintableExpression
- Derived
- Inherited Members
Constructors
SetOperationBase(string, SelectExpression, SelectExpression, bool)
Creates a new instance of the SetOperationBase class.
protected SetOperationBase(string alias, SelectExpression source1, SelectExpression source2, bool distinct)
Parameters
alias
stringA string alias for the table source.
source1
SelectExpressionA table source which is first source in the set operation.
source2
SelectExpressionA table source which is second source in the set operation.
distinct
boolA bool value indicating whether result will remove duplicate rows.
Properties
IsDistinct
The bool value indicating whether result will remove duplicate rows.
public virtual bool IsDistinct { get; }
Property Value
Source1
The first source of the set operation.
public virtual SelectExpression Source1 { get; }
Property Value
Source2
The second source of the set operation.
public virtual SelectExpression Source2 { get; }
Property Value
Methods
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()