Entity Framework Core template and Data Annotations
Posted: Wed 05 Apr 2017 01:57
I noticed that DevArt class model code generator does not add either primary key "Key" or Foreign key "ForeignKey" or "Required" Data Annotations.
Shouldn't DevArt code generation template add the data annotation to help entity framework core determine which key is the primary keys and which key is the foreign keys?
Reference
https://msdn.microsoft.com/en-us/librar ... .113).aspx
https://docs.microsoft.com/en-us/ef/core/modeling/keys
Shouldn't DevArt code generation template add the data annotation to help entity framework core determine which key is the primary keys and which key is the foreign keys?
Reference
https://msdn.microsoft.com/en-us/librar ... .113).aspx
https://docs.microsoft.com/en-us/ef/core/modeling/keys