✅ EF Best way to do UPDATE on entity
Hello,
EF by default tracks entities. That means, if a property of an entity is modified,
Now, I set new values for the properties in the business logic layer, and the repository layer is responsible for any DB operation.
My current method looks like this.... Is there a clearer approach or leave this as it is?
EF by default tracks entities. That means, if a property of an entity is modified,
SaveChanges() will do the update.Now, I set new values for the properties in the business logic layer, and the repository layer is responsible for any DB operation.
My current method looks like this.... Is there a clearer approach or leave this as it is?