C#C
C#4y ago
kunio_kun

Update Multiple Entities in One Query EF Core

I'm looking for a way to update multiple entities, something that represents
UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;


I've googled around and answers seems to execute a select-where query first then update each entity using a loop, then update them one by one.

Is there a way for this? Thanks in advance
Was this page helpful?