I looked around on how to do this (see here) but I still am not clear on how to create constructors for generated entity classes?
How do I do that?
I looked around on how to do this (see here) but I still am not clear on how to create constructors for generated entity classes?
How do I do that?
CodeCaster has the right idea.
If your entity classes are partial, you can create another piece of the class that extends the definition of the entity into a file that will not be regenerated every time you save the edmx.
Keep in mind that when you make updates to the edmx from your database (table changes, column type changes etc.) you may need to revisit the partial class file you defined to make sure that it works correctly with the new changes, because EF won't have any context for that extension of the entity class.