There is a bug in VWD 2008 Beta 2, that is the O/R Designer does not regenerate the mapping code, after the first generation, if you change the dbml file. It seems laking the trigger to regenerate!!!
I found a walk arround to force the Designer to re-generate the mapped code- till the RTM bug fix appears:
-
Make your changes to the dbml file (add, delete entities, or change properties) and save the file
-
Rename the file (ex. Northwind.dbml to Northwind2.dbml)
-
Make a copy in the same place (Drag to the same folder + CTRL)
-
The file will be copied to (Copy of Northwind2.dbml)
-
Rename the copied file to the original name. At this point I found that the Designer starts to Regenerate the .cs file and if you open it you will find your changes
-
Finally delete the first file (Northwind2.dbml)
The nice thing in this method is that: I do not need to delete and create all the tables again.
Hopfully this method will solve the problem