Table of Contents

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 string

A string alias for the table source.

source1 SelectExpression

A table source which is first source in the set operation.

source2 SelectExpression

A table source which is second source in the set operation.

distinct bool

A 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

bool

Source1

The first source of the set operation.

public virtual SelectExpression Source1 { get; }

Property Value

SelectExpression

Source2

The second source of the set operation.

public virtual SelectExpression Source2 { get; }

Property Value

SelectExpression

Methods

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int