Friday, 6 September 2013

EDMX is overwriting Key data annotations

EDMX is overwriting Key data annotations

This applies to EF 5 and database first modeling. My model was built
useing the EF generator from an existing DB.
I'm using the [Key] data annotation in my model classes because the
primary key fields have names that are not in line with EF conventions.
Everything works, but when I open the root EDMX files, the model classes
are updated and any manual changes I had made are lost.
Should I be making my changes in a different manner?

No comments:

Post a Comment