I just started with Entity framework and I was able to do select operations using linq,but I had an issue with Inserting. I tried this sample to see whats wrong :
testEntities te = new testEntities(); te.Customer.Add(new Table {Id=1,Credit=200m,Name="test" }); te.SaveChanges(); Well it appears that the changes the row was only added to the testEntites but not to the database and when I restart the application I find no rows added. Thanks,
var t = new Table {Id=1,Credit=200m,Name="test" }; t.markAsAdded(); te.Customer.ApplyChanges(t); te.SaveChanges;te.Customer?