PawelGerr/Thinktecture.EntityFrameworkCore

Bulk update multi properties

tmt2504 opened this issue · 0 comments

var options = new SqlServerBulkUpdateOptions
{
KeyProperties = IEntityPropertiesProvider.Include(c => c.Id),
PropertiesToUpdate = IEntityPropertiesProvider.Include(c => c.FirstName)
// use "IEntityPropertiesProvider.Exclude" to exclude properties
};

await ctx.BulkUpdateAsync(customersToInsert, options);

How about I wanna update 2 or more columns (not only FirstName). Example: Firstname, Lastname,...