Olivier Muhring

Olivier Muhring

  • NA
  • 150
  • 10.3k

Partial classes over seperate namespaces

May 30 2012 8:48 AM
In a project I'm currently using the EF, using the tools included in Visual Studio I generated the POCO-classes for my database. I moved these files to a seperate folder, and in a seperate namespace.
The customizations for these classes are expected to be created in another folder, in its own namespace. (if we follow the project guidelines by the letter)

Which brings me to my question: do partial classes, and their customizations, have to be declared in the same namespace, or could the be spread over 2 seperate namespaces? (in my case x.generated and x.customized)

Answers (2)