Table of Contents

Class MergeDefinition<TTarget, TSource>.Operation

Namespace
LinqToDB
Assembly
linq2db.dll
public class MergeDefinition<TTarget, TSource>.Operation
Inheritance
MergeDefinition<TTarget, TSource>.Operation
Extension Methods

Properties

BySourcePredicate

public Expression<Func<TTarget, bool>>? BySourcePredicate { get; }

Property Value

Expression<Func<TTarget, bool>>

CreateExpression

public Expression<Func<TSource, TTarget>>? CreateExpression { get; }

Property Value

Expression<Func<TSource, TTarget>>

HasCondition

public bool HasCondition { get; }

Property Value

bool

MatchedPredicate

public Expression<Func<TTarget, TSource, bool>>? MatchedPredicate { get; }

Property Value

Expression<Func<TTarget, TSource, bool>>

MatchedPredicate2

public Expression<Func<TTarget, TSource, bool>>? MatchedPredicate2 { get; }

Property Value

Expression<Func<TTarget, TSource, bool>>

NotMatchedPredicate

public Expression<Func<TSource, bool>>? NotMatchedPredicate { get; }

Property Value

Expression<Func<TSource, bool>>

Type

public MergeOperationType Type { get; }

Property Value

MergeOperationType

UpdateBySourceExpression

public Expression<Func<TTarget, TTarget>>? UpdateBySourceExpression { get; }

Property Value

Expression<Func<TTarget, TTarget>>

UpdateExpression

public Expression<Func<TTarget, TSource, TTarget>>? UpdateExpression { get; }

Property Value

Expression<Func<TTarget, TSource, TTarget>>

Methods

Delete(Expression<Func<TTarget, TSource, bool>>)

public static MergeDefinition<TTarget, TSource>.Operation Delete(Expression<Func<TTarget, TSource, bool>> predicate)

Parameters

predicate Expression<Func<TTarget, TSource, bool>>

Returns

MergeDefinition<TTarget, TSource>.Operation

DeleteBySource(Expression<Func<TTarget, bool>>)

public static MergeDefinition<TTarget, TSource>.Operation DeleteBySource(Expression<Func<TTarget, bool>> predicate)

Parameters

predicate Expression<Func<TTarget, bool>>

Returns

MergeDefinition<TTarget, TSource>.Operation

Insert(Expression<Func<TSource, bool>>, Expression<Func<TSource, TTarget>>)

public static MergeDefinition<TTarget, TSource>.Operation Insert(Expression<Func<TSource, bool>> predicate, Expression<Func<TSource, TTarget>> create)

Parameters

predicate Expression<Func<TSource, bool>>
create Expression<Func<TSource, TTarget>>

Returns

MergeDefinition<TTarget, TSource>.Operation

Update(Expression<Func<TTarget, TSource, bool>>, Expression<Func<TTarget, TSource, TTarget>>)

public static MergeDefinition<TTarget, TSource>.Operation Update(Expression<Func<TTarget, TSource, bool>> predicate, Expression<Func<TTarget, TSource, TTarget>> update)

Parameters

predicate Expression<Func<TTarget, TSource, bool>>
update Expression<Func<TTarget, TSource, TTarget>>

Returns

MergeDefinition<TTarget, TSource>.Operation

UpdateBySource(Expression<Func<TTarget, bool>>, Expression<Func<TTarget, TTarget>>)

public static MergeDefinition<TTarget, TSource>.Operation UpdateBySource(Expression<Func<TTarget, bool>> predicate, Expression<Func<TTarget, TTarget>> update)

Parameters

predicate Expression<Func<TTarget, bool>>
update Expression<Func<TTarget, TTarget>>

Returns

MergeDefinition<TTarget, TSource>.Operation

UpdateWithDelete(Expression<Func<TTarget, TSource, bool>>, Expression<Func<TTarget, TSource, TTarget>>, Expression<Func<TTarget, TSource, bool>>)

public static MergeDefinition<TTarget, TSource>.Operation UpdateWithDelete(Expression<Func<TTarget, TSource, bool>> updatePredicate, Expression<Func<TTarget, TSource, TTarget>> update, Expression<Func<TTarget, TSource, bool>> deletePredicate)

Parameters

updatePredicate Expression<Func<TTarget, TSource, bool>>
update Expression<Func<TTarget, TSource, TTarget>>
deletePredicate Expression<Func<TTarget, TSource, bool>>

Returns

MergeDefinition<TTarget, TSource>.Operation