G\'day everyone.
I\'m still learning LINQ so forgive me if this is naive. When you\'re dealing with SQL directly, you can generate update commands with conditionals
You can use Entity Framework Extensions library, it supports batch update and batch merge, however the library is not free:
PM > Install-Package Z.EntityFramework.Extensions
using Z.EntityFramework.Plus; ... dc.Products .Where(q => q.Type == 1) .Update(q => new Product { Count = 0 });