Create an Index on IdentityUser.Email
In my project, my user class is inheriting from IdentityUser, and because i have alot of users and i'm performing alot of queries against the user email (which is an IdentityUser property) i wish to have it indexed.
How can one index properties of IdentityUser?
I was thinkin about overriding the Email property and put the [Index] annotation, but will this breaks something?
Note that my project is based on ASP.NET MVC 6 template, and i'm using Entity framework code-first approach.
链接地址: http://www.djcxy.com/p/64538.html