locked
Difference between service.update(entity) and service.UpdateObject(...) ?! RRS feed

  • Question

  • Need to understand the difference between "service.Update(entity);"

    And "service.UpdateObject(parameter);"

         "service.SaveChanges();" ?!

    Also, I have a scenario where i modified 2 or 3 fields of an entity & I need to update only those fields instead of the whole entity.

    Currently, I have used "service.Update(entity);" and because of that unnecessarely one of the field on entity get updated/changed thats why a workflow triggered on that field change ,even though there no as such change / modification on that field.

    Please suggest feasible solution.


    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Tuesday, November 26, 2013 2:16 PM