Table of Contents

Class SqlMergeStatement

Namespace
LinqToDB.Internal.SqlQuery
Assembly
linq2db.dll
public sealed class SqlMergeStatement : SqlStatementWithQueryBase, IQueryElement
Inheritance
SqlMergeStatement
Implements
Inherited Members
Extension Methods

Constructors

SqlMergeStatement(SqlTable)

public SqlMergeStatement(SqlTable target)

Parameters

target SqlTable

Properties

ElementType

AST node type.

public override QueryElementType ElementType { get; }

Property Value

QueryElementType

HasIdentityInsert

public bool HasIdentityInsert { get; }

Property Value

bool

Hint

public string? Hint { get; }

Property Value

string

IsParameterDependent

public override bool IsParameterDependent { get; set; }

Property Value

bool

On

public SqlSearchCondition On { get; }

Property Value

SqlSearchCondition

Operations

public List<SqlMergeOperationClause> Operations { get; }

Property Value

List<SqlMergeOperationClause>

Output

public SqlOutputClause? Output { get; set; }

Property Value

SqlOutputClause

QueryType

public override QueryType QueryType { get; }

Property Value

QueryType

SelectQuery

public override SelectQuery? SelectQuery { get; set; }

Property Value

SelectQuery

Source

public SqlTableLikeSource Source { get; }

Property Value

SqlTableLikeSource

Target

public SqlTableSource Target { get; }

Property Value

SqlTableSource

Methods

GetElementHashCode()

public override int GetElementHashCode()

Returns

int

GetTableSource(ISqlTableSource, out bool)

public override ISqlTableSource? GetTableSource(ISqlTableSource table, out bool noAlias)

Parameters

table ISqlTableSource
noAlias bool

Returns

ISqlTableSource

Modify(SqlTableSource, SqlTableLikeSource, SqlSearchCondition, SqlOutputClause?)

public void Modify(SqlTableSource target, SqlTableLikeSource source, SqlSearchCondition on, SqlOutputClause? output)

Parameters

target SqlTableSource
source SqlTableLikeSource
on SqlSearchCondition
output SqlOutputClause

ToString(QueryElementTextWriter)

Generates debug text representation of AST node.

public override QueryElementTextWriter ToString(QueryElementTextWriter writer)

Parameters

writer QueryElementTextWriter

Returns

QueryElementTextWriter