Skip to content

Enhancement: Allow only updating changed records during BulkMerge #1050

Open
@jgranger36

Description

@jgranger36

Describe the enhancement

Allow only updating changed records during BulkMerge. This will eliminate unneeded writes to the table and preserve any modified date column. This maintains the efficiency of the sqlbulkcopy to a temp table for data transfer but allows more granularity in what modifications actually happen against the table.

               _connection.BulkMergeAsync<SomeObject>(entities, qualifiers,mappings,additionalQualifiers);

Additional Context

I think the easiest way is to simply have another parameter for additionalQualifiers that will add additional WHERE/OR clauses to the query, comparing these columns from source and destination tables and only updating where values do not match.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestwontfixThis will not be worked on

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions