The Code Slinger

October 6, 2008

DBML File Issue

Filed under: DBML,LINQ to SQL,VS.NET 2008 SP1 — Pete @ 1:06 pm

If you edit an existing DBML file (e.g. Foo.dbml) and save it, then notice that your entire Foo.designer.cs is gone and you’re using VS 2008 SP1, then the issue (which it took me quite a while to figure out) is that you have your using statements OUTSIDE of your namespace declaration within the Foo.designer.cs AND any other partial class declarations of the Food class. 

Absolutely asinine I know.

Blog at WordPress.com.