C
C#11mo 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
FestivalDelGelato
if it's a tracked object yes, but you shouldn't keep that alive for long
Angius
Angius11mo ago
Don't
Jimmacle
Jimmacle11mo ago
you shouldn't wrap EF in a repo pattern at all DbSet<T> is a generic repository already

Did you find this page helpful?