Click here to Skip to main content
15,888,286 members
Articles / Programming Languages / C#

Validate a Unique Constraint at dbContext ValidateEntity in Entity Framework

Rate me:
Please Sign up or sign in to vote.
4.57/5 (12 votes)
7 Nov 2016CPOL2 min read 43.8K   8  
Validated the unique constraints at dbContext ValidateEntity in a generic way by reading the IndexAttribute values.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead Digital Wink
Turkey Turkey
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions