© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
15 replies
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;
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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Using automapper to update EF Core entities recursively
C#CC# / help
3y ago
❔ EF Core not getting all entities
C#CC# / help
3y ago
❔ Ef core multiple projects
C#CC# / help
3y ago
✅ Ef-core query efficiency?
C#CC# / help
15mo ago