Placement of extended partial classes in entity framework

Since partial classes have to be in the same namespace is my only option to place them in the same directy as my .edmx? If this is the case I am assuming the file name always has to be different.

Also, is there anything additional that I have to do or do I just create another partial class with the same name in the same directory and add properties/methods to it?


The partial classes should be in the same project as the .edmx-file. (the same directory is not required).

Say your Entity Model contains an Entity Person. You can create a new file called Person.partial.cs for your other code. You are free to use any filename for your partial classes. It is only necessary that your partial class is defined in the namespace of the Entity.

namespace MyModel{
   public partial class Person {
      // put your additional logic here

Need Your Help

filling circle with hexagons (different approach)

javascript html5 geometry

As my previous approach doesn't seem to work and a solution would be rather complex, I have decided to try another approach which might be a little bit simpler.

Is there a good tool to aggregate django error messages for a site?

python django error-handling

We've used Arecibo, but the configuration of it and dealing with AppEngine were painful. Does anyone have other or better tools for this job?