KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Entity Framework ObjectSet with its method ToList shows just saved entities. That means, when I call context.AddToCustomers(myNewCust); and then (without calling SaveChanges) myDataGrid.DataContext = context.Customers.ToList(); the DataGrid doesn't show the newly added entity (even context.Customers.Count() doesn't include it). Is there any way to show these entities (those with EntityState = Added ) ? Thanks in advance.
Tags (comma-separated)
Save Edits
Cancel