I tried following the steps I describe below in VS 2010, but to no avail:
- Create new Windows Forms App. Project
- Add new empty ADO EDM to Project
- Add new entity Customer with scalar properties FirstName and LastName
- Generate db script
- Execute db script to create tables in db
- Add new Object Data Source based on EDM Model1
- Select object Customer in Data Sources window and drop it on form in form of Details view.
- All typical binding controls are created, all I need to do is to enable the Save button.
I run the app, form is displayed. I can add new records and navigate between them. I press save, but when I reinitialize the app, all data is lost.
Is it possible to make this work with 0 code, if not, what is the minimum I should add to make this work.