Table of Contents

Interface IDataColumnMapping

Namespace
FluentCommand.Merge
Assembly
FluentCommand.SqlServer.dll

Provides a fluent interface for configuring data column mappings in a merge operation.

public interface IDataColumnMapping

Methods

BulkCopy(bool)

Indicates whether the column should be included in the bulk copy operation.

IDataColumnMapping BulkCopy(bool value = true)

Parameters

value bool

true to include the column in bulk copy; otherwise, false. Default is true.

Returns

IDataColumnMapping

The current IDataColumnMapping instance for chaining.

Ignore(bool)

Indicates whether the column should be ignored and not used in the merge operation.

IDataColumnMapping Ignore(bool value = true)

Parameters

value bool

true to ignore the column; otherwise, false. Default is true.

Returns

IDataColumnMapping

The current IDataColumnMapping instance for chaining.

Insert(bool)

Indicates whether the column can be inserted during the merge operation.

IDataColumnMapping Insert(bool value = true)

Parameters

value bool

true to allow insertion; otherwise, false. Default is true.

Returns

IDataColumnMapping

The current IDataColumnMapping instance for chaining.

Key(bool)

Indicates whether the column is used as part of the key for the merge operation.

IDataColumnMapping Key(bool value = true)

Parameters

value bool

true if the column is part of the merge key; otherwise, false. Default is true.

Returns

IDataColumnMapping

The current IDataColumnMapping instance for chaining.

NativeType(string)

Sets the SQL Server native data type for the source column.

IDataColumnMapping NativeType(string value)

Parameters

value string

The SQL Server native type (e.g., nvarchar, int).

Returns

IDataColumnMapping

The current IDataColumnMapping instance for chaining.

SourceColumn(string)

Specifies the source column name to read from the source data.

IDataColumnMapping SourceColumn(string value)

Parameters

value string

The name of the source column.

Returns

IDataColumnMapping

The current IDataColumnMapping instance for chaining.

TargetColumn(string)

Specifies the target column name in the destination table.

IDataColumnMapping TargetColumn(string value)

Parameters

value string

The name of the target column.

Returns

IDataColumnMapping

The current IDataColumnMapping instance for chaining.

Update(bool)

Indicates whether the column can be updated during the merge operation.

IDataColumnMapping Update(bool value = true)

Parameters

value bool

true to allow updates; otherwise, false. Default is true.

Returns

IDataColumnMapping

The current IDataColumnMapping instance for chaining.