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.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: