How to add entity object to adequate entity set with object context in EF?
Posted
by Levelbit
on Stack Overflow
See other posts from Stack Overflow
or by Levelbit
Published on 2010-04-07T13:01:58Z
Indexed on
2010/04/07
13:03 UTC
Read the original article
Hit count: 382
entity-framework
I have a problem when I add an entity object with ObjectContext.AddObject method because I can't retrieve that object with LINQ querying my ObjectContext.Person entities. I know that this new added object is stored somewhere, because it is used to update database after SaveChanges method. That's bothers me because I want to update my datagrid DataContext without saving changes unless I really want to do it. It doesn't help if I add the same object to DataContext list myself directly.
© Stack Overflow or respective owner