Repo.Update

Developer
Nov 21, 2010 at 5:09 AM

Hi,

It seems that Repo.Update in c# does not attach or add the object updated to the context (the code for doing do is commented out). I am not sure whether this is the intended behavoiure but is makes the tests [EntityName]_Update_CountShouldBeOne fail as the Update(Ent) is called on a newly created entity.

Best,

Asher

Coordinator
Nov 21, 2010 at 5:21 AM

Yeah, when I moved to a unit of work pattern, the update was kind of pointless, but... I kept it in there anyways. The current model is "always" attached when using the repository, so there really is nothing to do but call repo.table.update(record); then repo.CommitChanges();

Rick