LINQ to SQL designer VWD Express 2008 Beta 2<p align=left>When I add a table or class to the O\R designer for LINQ to SQL classes, the designer.vb does not automatically generate any objects.  In fact it is completely blank.  I don't know if there is some setting I have to enable or what the deal is.  I have uninstalled, reinstalled and repaired it and still the same issue.  I did have Orcas Beta 1 installed prior and I uninstalled it before installing the Beta 2. Could something still linger around from the Beta 1 interfering with Beta 2?  Any suggestions?</p> <p align=left> </p> <p align=left>Thanks</p>© 2009 Microsoft Corporation. All rights reserved.Fri, 30 Jan 2009 06:43:37 Z40dc8e0e-ef14-4b32-9b14-6e8d33ebe145http://social.msdn.microsoft.com/Forums/en-US/linqprojectgeneral/thread/40dc8e0e-ef14-4b32-9b14-6e8d33ebe145#40dc8e0e-ef14-4b32-9b14-6e8d33ebe145http://social.msdn.microsoft.com/Forums/en-US/linqprojectgeneral/thread/40dc8e0e-ef14-4b32-9b14-6e8d33ebe145#40dc8e0e-ef14-4b32-9b14-6e8d33ebe145Leonchikhttp://social.msdn.microsoft.com/Profile/en-US/?user=LeonchikLINQ to SQL designer VWD Express 2008 Beta 2<p align=left>When I add a table or class to the O\R designer for LINQ to SQL classes, the designer.vb does not automatically generate any objects.  In fact it is completely blank.  I don't know if there is some setting I have to enable or what the deal is.  I have uninstalled, reinstalled and repaired it and still the same issue.  I did have Orcas Beta 1 installed prior and I uninstalled it before installing the Beta 2. Could something still linger around from the Beta 1 interfering with Beta 2?  Any suggestions?</p> <p align=left> </p> <p align=left>Thanks</p>Wed, 10 Oct 2007 23:31:53 Z2007-10-11T04:37:04Zhttp://social.msdn.microsoft.com/Forums/en-US/linqprojectgeneral/thread/40dc8e0e-ef14-4b32-9b14-6e8d33ebe145#7ec3ff2c-9ca3-4c64-89f8-c886d9a6f07chttp://social.msdn.microsoft.com/Forums/en-US/linqprojectgeneral/thread/40dc8e0e-ef14-4b32-9b14-6e8d33ebe145#7ec3ff2c-9ca3-4c64-89f8-c886d9a6f07cDinesh Kulkarni - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Dinesh%20Kulkarni%20-%20MSFTLINQ to SQL designer VWD Express 2008 Beta 2<p align=left><font face=Arial size=2>Just to rule out the most obvious ...</font></p> <p align=left>You are saving after drag and drop before looking at the .vb/.cs file, right? </p> <p align=left><br>Thanks,</p> <p align=left>Dinesh</p>Thu, 11 Oct 2007 04:36:54 Z2007-10-11T04:37:04Zhttp://social.msdn.microsoft.com/Forums/en-US/linqprojectgeneral/thread/40dc8e0e-ef14-4b32-9b14-6e8d33ebe145#8f218fba-70e0-4d46-840a-483b3686d2behttp://social.msdn.microsoft.com/Forums/en-US/linqprojectgeneral/thread/40dc8e0e-ef14-4b32-9b14-6e8d33ebe145#8f218fba-70e0-4d46-840a-483b3686d2beWael Faraghttp://social.msdn.microsoft.com/Profile/en-US/?user=Wael%20FaragLINQ to SQL designer VWD Express 2008 Beta 2<span>  <p>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!!!</p> <p align=left> </p> <p align=left>I found a walk arround to force the Designer to re-generate the mapped code- till the RTM bug fix appears:</p> <ol> <li> <div align=left>Make your changes to the dbml file (add, delete entities, or change properties) and save the file</div> <li> <div align=left>Rename the file (ex. Northwind.dbml to Northwind2.dbml)</div> <li> <div align=left>Make a copy in the same place (Drag to the same folder + CTRL)</div> <li> <div align=left>The file will be copied to (Copy of Northwind2.dbml)</div> <li> <div align=left>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</div> <li> <div align=left>Finally delete the first file (Northwind2.dbml)</div></li></ol> <p align=left>The nice thing in this method is that: I do not need to delete and create all the tables again.</p> <p align=left>Hopfully this method will solve the problem</p> <p align=left> </p></span> <p align=left><font face=Arial size=2></font> </p>Sat, 13 Oct 2007 02:37:07 Z2007-10-13T02:37:07Z