Settings and activity
5 results found
-
144 votes
An error occurred while saving the comment -
3 votesjongleur shared this idea ·
-
7 votesjongleur supported this idea ·
-
1 votejongleur shared this idea ·
-
1 votejongleur shared this idea ·
Hi.
Are there any plans to Support unique constraints in line with the Index Attribute introduced by EF 6.1 (see http://blogs.msdn.com/b/adonet/archive/2014/02/11/ef-6-1-0-beta-1-available.aspx and http://blog.oneunicorn.com/2014/02/15/ef-6-1-creating-indexes-with-indexattribute/ ?
It's defined in System.ComponentModel.DataAnnotations.Schema.IndexAttribute and supports the Definition of unique constraints as well as General indices spanning one or more attributes.
It would be nice to get something like that in the SQL code generation of dotConnect (for Oracle in my case).
I did not try it out yet, but I guess it should be possible to use it already by defining the attributes in the EntityDeveloper and use the client-side checks hopefully included in EF on SaveChanges.