Does Entity Framework 5 support unique constraints?
Wondering if Entity Framework 5 supports unique constraints on entity properties? If so, how can I specify that a property should be unique? No, it doesn't. There were plans in the past to include a unique constraint feature in EF 5.0: http://blogs.msdn.com/b/efdesign/archive/2011/03/09/unique-constraints-in-the-entity-framework.aspx But you can see that there is an update on top of the post: Update: this feature has been postponed and will not be included in Entity Framework 5. You can vote on the feature to raise possibly the priority it gets implemented with... http://data.uservoice.com