We had a requirement where a two character key was to be used as a primary key (natural key) instead of a surrogate key for a look up table in sql server 2012 database. The two characters were not supposed to change, and thus was the choice for primary key. Second reason was that the number of records will not exceed probably 10.
However a question has now been raised to us if it is possible to edit them (via the user interface) without having to delete the record (which is the current setup). this key is also a foreign key in three or more tables. Thus a delete is going to be detrimental and is currently being done only on a carefully considered basis.
Wondering if Entity Framework 6.0 and above now supports "OnUpdate Cascade" for primary keys? If not, is there a workaround for this? (other than deleting and creating the record again).
Please advise.