Re-Generating Your Linq to SQL Data Model Class File

by Matt | Haulix 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




biuquote
  • Comment
  • Preview
Loading


© 2011 Haulix, LLC. All rights reserved. About Us | Sign In | Contact Us