C
C#9mo 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
HtmlCompiler
HtmlCompiler9mo ago
if it's a tracked object yes, but you shouldn't keep that alive for long
Angius
Angius9mo ago
Don't
Jimmacle
Jimmacle9mo 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