Table of Contents

Class SqlInsertOrUpdateStatement

Namespace
LinqToDB.SqlQuery
Assembly
linq2db.dll
public class SqlInsertOrUpdateStatement : SqlStatementWithQueryBase, IQueryElement, ISqlExpressionWalkable
Inheritance
SqlInsertOrUpdateStatement
Implements
Inherited Members
Extension Methods

Constructors

SqlInsertOrUpdateStatement(SelectQuery?)

public SqlInsertOrUpdateStatement(SelectQuery? selectQuery)

Parameters

selectQuery SelectQuery

Properties

ElementType

public override QueryElementType ElementType { get; }

Property Value

QueryElementType

Insert

public SqlInsertClause Insert { get; set; }

Property Value

SqlInsertClause

QueryType

public override QueryType QueryType { get; }

Property Value

QueryType

Update

public SqlUpdateClause Update { get; set; }

Property Value

SqlUpdateClause

Methods

GetTableSource(ISqlTableSource)

public override ISqlTableSource? GetTableSource(ISqlTableSource table)

Parameters

table ISqlTableSource

Returns

ISqlTableSource

ToString(StringBuilder, Dictionary<IQueryElement, IQueryElement>)

public override StringBuilder ToString(StringBuilder sb, Dictionary<IQueryElement, IQueryElement> dic)

Parameters

sb StringBuilder
dic Dictionary<IQueryElement, IQueryElement>

Returns

StringBuilder

Walk<TContext>(WalkOptions, TContext, Func<TContext, ISqlExpression, ISqlExpression>)

public override ISqlExpression? Walk<TContext>(WalkOptions options, TContext context, Func<TContext, ISqlExpression, ISqlExpression> func)

Parameters

options WalkOptions
context TContext
func Func<TContext, ISqlExpression, ISqlExpression>

Returns

ISqlExpression

Type Parameters

TContext