In my ASP.NET web site users model, I want both Guid Id
's and String UserName
s to be unique. I am going to map my model objects to a DB using Entity Framework.
Is there a build-in attribute or some other mechanism that facilitates this common constraint in ASP.NET MVC? Or am I bound to manually checking user name uniqueness at user register form?