ADO.NET Entity Data Model - Duplicates
How c开发者_高级运维an I add a Unqiue index to a column like in SQL, so it wont allow duplicates in the column?
- Double click your EDMX file. the entity model designer gui comes up.
- Add one or more Entities if you don't have any already.
- Select a field in an entity, and double-click it. The field property window should open up.
- Select the property "ENTITY KEY" and set it to True.
As far as I understood, this makes the field unique.
Cheers, G.
精彩评论