Table of Contents

Class DataMergeExtensions

Namespace
FluentCommand.Merge
Assembly
FluentCommand.SqlServer.dll

Provides extension methods for IDataSession to configure and execute data merge operations.

public static class DataMergeExtensions
Inheritance
DataMergeExtensions
Inherited Members

Methods

CommandTimeout(IDataMerge, TimeSpan)

Sets the wait time before terminating the attempt to execute a command and generating an error.

public static IDataMerge CommandTimeout(this IDataMerge dataMerge, TimeSpan timeSpan)

Parameters

dataMerge IDataMerge

The IDataMerge instance to configure.

timeSpan TimeSpan

The TimeSpan to wait for the command to execute before timing out.

Returns

IDataMerge

The same IDataMerge instance for fluent chaining.

MergeData(IDataSession, DataMergeDefinition)

Starts a data merge operation using the specified DataMergeDefinition.

public static IDataMerge MergeData(this IDataSession session, DataMergeDefinition mergeDefinition)

Parameters

session IDataSession

The IDataSession to use for the merge operation.

mergeDefinition DataMergeDefinition

The DataMergeDefinition that defines the merge configuration.

Returns

IDataMerge

An IDataMerge instance for configuring and executing the merge operation.

MergeData(IDataSession, string)

Starts a data merge operation using the specified destination table name.

public static IDataMerge MergeData(this IDataSession session, string destinationTable)

Parameters

session IDataSession

The IDataSession to use for the merge operation.

destinationTable string

The name of the destination table on the server.

Returns

IDataMerge

An IDataMerge instance for configuring and executing the merge operation.

MergeData<TEntity>(IDataSession)

Starts a data merge operation using the specified entity type TEntity. The target table and columns are automatically mapped from the entity type.

public static IDataMerge MergeData<TEntity>(this IDataSession session)

Parameters

session IDataSession

The IDataSession to use for the merge operation.

Returns

IDataMerge

An IDataMerge instance for configuring and executing the merge operation.

Type Parameters

TEntity

The type of the entity to merge.