0
nmtoan07 created
I don't know why we have RegisterToChanges method. I saw we code in this method for handle ObjectStateManagerChanged and update Audit fields. But I think maybe it was duplicated wth SaveChanges? Please explain for me.
Thanks,
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
1 Answer(s)
-
0
It used to set CreationTime, CreatorUser and GUID Id values without need to SaveChanges. This can espcially useful if you want to need these values after creating an entity and you don't want to call savechanges. Duplication is no problem, the code handles it.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)