views:

199

answers:

1

What is that individual (currently empty) file under MyDataContext.dbml for?

Directory structure:

Mydatacontext.dbml
    MyDataContext.cs
    MyDataContext.dbml.layout
    MyDataContext.designer.cs
+2  A: 

It's normally used for you to add a partial MyDataContext class with custom code that won't be overwritten during code generation. If you edited MyDataContext.designer.cs instead, your hand-written code would be erased.

Mark Cidade
Perfect I was actually looking for a place to put that code. Thanks!
Alex
I was wondering the same +1
ichiban