What is that individual (currently empty) file under MyDataContext.dbml for?
Directory structure:
Mydatacontext.dbml
MyDataContext.cs
MyDataContext.dbml.layout
MyDataContext.designer.cs
What is that individual (currently empty) file under MyDataContext.dbml for?
Directory structure:
Mydatacontext.dbml
MyDataContext.cs
MyDataContext.dbml.layout
MyDataContext.designer.cs
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.