I have a JSON string and I am deserlizing it into a EF entitiy.
Report result = js.Deserialize<Report>(json);
I am trying to update the entity in my context with the same ID to have the values of my deserlized one.
var reportToUpdate _entities.Reports.Single(x => x.Id == result.Id)
I want to do something like this
reportToUpdate = set all values to the values from result
context.SaveChanges();
How can I do this?
I would like to avoid doing something like this:
report.param1 = result.param1
report.param3 = result.param3
report.param3 = result.param3
because there are about 50 properties on this entity.