Blog Home  |  Archive  |  Feed Subscribe  |  Haulix Main
 

Re-Generating Your Linq to SQL Data Model Class File

by Matt 23. December 2009 10:34

Through some naming conflicts, I lost my Linq to Sql data model's class file.


Data.dbml
Data.dbml.layout
Data.designer.cs   <-- MISSING


With about 20 tables and 50+ stored procedures in the methods pane, it would be a nightmare to manually create a new dbml file. I luckily stumbled upon a LIFE SAVER...

In the Visual Studio solution explorer, right click on your .dbml file and select "Run Custom Tool" and BAM..... it generates a fresh cs file for you.

Tags:

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



© 2009 Haulix. All rights reserved. About Us | Log in | Contact Us