msawczyn / EFDesigner2022

Entity Framework visual design surface and code-first code generation for EF6, Core and beyond
MIT License
119 stars 21 forks source link

Set another Property as ID #19

Closed saigkill closed 2 years ago

saigkill commented 2 years ago

I have a BaseEntity with ID, and a derived Entity class. Is there any way to set another property as Identity for that class?

msawczyn commented 2 years ago

No, but that's an Entity Framework limitation. It uses the identifiers as foreign keys to the tables of the derived classes.