I'm developing a WEB API asp.net project with visual studio 2013, and I'm implementing my custom Identity model for custom registration. For example I've added an email field in the RegisterBindingModel.
This is what I've done: How to extend asp.net web api 2 user?
I've added email property, and I need that property to be unique (as UserName) , but by default that email property can be repeated. My question is how do I make this email property unique, like UserName? I've read that unique properties can be set with UserValidator, but can't find how. Can you tell me how I can make that, with UserValidator or the best way?
And how's the UserName property defined as unique? I can't find it anywhere.
Thank you.