Greetings,
I have two projects that I tried to set up identically, but with one I can add a new line in a table in the database programmically and the other I cannot. I have used the same code, have primary keys for all tables, and the Entity XML files appear to be set-up the same way. The code that I’m using will put the new line in the DataGrid after running, but when I close the project and restart it the line is no longer there, and of course it is not in the database either.
I’m using Windows 7, VS 2012 Express, VB, WPF and Entity Framework working directly with a database located in the project, not datasets. I used Data Sources to drag DataGrids onto the design screen, and am trying to use these to work directly with the database. The project that works has the database located in Microsoft’s SQL server files, and on a different project I had to remove the database from the project before it would save changes made to a DataGrid, but that was with VS 2010 Express and there have been some changes made. But I would like to be able to keep the database in the project if possible - any ideas?
Robert Agans