C
C#8mo ago
verbose

EF Core

If I wrap EF in repo pattern, then update the repo's in memory object (update property), can I just call SaveChanges to update it?
3 Replies
Omnissiah
Omnissiah8mo ago
if it's a tracked object yes, but you shouldn't keep that alive for long
Angius
Angius8mo ago
Don't
Jimmacle
Jimmacle8mo ago
you shouldn't wrap EF in a repo pattern at all DbSet<T> is a generic repository already
Want results from more Discord servers?
Add your server