absolution183
❔ Updating an entity/record with 1 query(?) on Entity Framework
My senior told me that there's a way to select and update something in EF in 1 query. So instead of this:
He said, if he remembers correctly, I should use the
Attach()
method. I've been Googling, and this is how I understood how to use this method:
Just wondering if my approach and understanding of the Attach()
method are correct.15 replies