Move using directives in your DataContext.cs and DataContext.designer.cs files into the namespace scope.
11
votes
The *.designer.cs files are completely generated by designer.
You should not write any your own code into this file. The classes and/or methods are partial, so you can extend/change the behaviour in the separate file.
7
votes
Don't place your own code in the designer file, instead use a separate file leveraging the partial classes concept.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more