implement a "Unique" feature for properties
This should then create a unique constraint for the corresponding column in SQL.
Often there are fields that are not primary key, but still need to be unique "natural part numbers" are a common example.
7
votes
Olaf Monien
shared this idea
-
Michael Akin commented
Yes, I see that I can mark a property as a Natural Id, however nothing is generated in the code. Please implement the code generation for this.
http://notherdev.blogspot.com/2012/02/mapping-by-code-id-naturalid.html