¡@

Home 

c# Programming Glossary: newfoo.subfoo

Entity framework, problems updating related objects

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

newFoo context.Entry dbFoo.SubFoo .CurrentValues.SetValues newFoo.SubFoo context.SaveChanges return newFoo When running this now I get.. newFoo context.Entry dbFoo.SubFoo .CurrentValues.SetValues newFoo.SubFoo context.Entry dbFoo.AnotherSubFoo .CurrentValues.SetValues newFoo.AnotherSubFoo.. .CurrentValues.SetValues newFoo if dbFoo.SubFoo null if newFoo.SubFoo null if dbFoo.SubFoo.Id newFoo.SubFoo.Id no relationship change..