¡@

Home 

c# Programming Glossary: dbfoo

Entity framework, problems updating related objects

http://stackoverflow.com/questions/13236116/entity-framework-problems-updating-related-objects

it does not get updated. public Foo Edit Foo newFoo var dbFoo context.Foo .Include x x.SubFoo .Include x x.AnotherSubFoo.. .Single c c.Id newFoo.Id var entry context.Entry Foo dbFoo entry.OriginalValues.SetValues dbFoo entry.CurrentValues.SetValues.. context.Entry Foo dbFoo entry.OriginalValues.SetValues dbFoo entry.CurrentValues.SetValues newFoo context.SaveChanges return..