What is the .cs file in MyDataContext.dbml?

What is this separate (current empty) file in MyDataContext.dbml for?

Directory structure:

Mydatacontext.dbml
    MyDataContext.cs
    MyDataContext.dbml.layout
    MyDataContext.designer.cs
+3
source share
1 answer

Typically used to add a partial class MyDataContextwith custom code that will not be overwritten during code generation. If you edited MyDataContext.designer.cs instead, your manual code will be deleted.

+3
source

Source: https://habr.com/ru/post/1709558/


All Articles