When trying to rename a table in the designer, the rename would fail with the message: Unspecified Error
I found this thread on the MSDN forums and tried moving all the includes inside of the namespace (what a strange bug/fix) but that did not work.
So here is our workaround:
- Open the DBML file in an editor, not the designer. (Right click on the .dbml file, select "open with" and choose the XML editor.)
- Find the table you want to change and change the name attribute of the type element.
- Save your change - Visual Studio will regenerate the designer code with the new name.
Hopefully, this will save you some time if you hit the same problem.
No comments:
Post a Comment