Entity Framework Extensions IgnoreOnMergeUpdateExpression


Gets or sets columns to ignore when the BulkMerge method executes the update statement.

context.BulkMerge(list, options => 
        options.IgnoreOnMergeUpdateExpression = entity => new {entity.CreatedDate, entity.CreatedDate}


The IgnoreOnMergeUpdateExpression option lets you ignore some columns that should be only `insert.

By example, when you need to insert the CreatedDate and CreatedDate but not update the value.

In this Page