Display Name ASP.NET Identity 2.0 UserName

I installed a sample Identity 2.0 example: Microsoft.AspNet.Identity.Samples -Pre .

I want to specify a display name for the UserName field so that it displays Nombre de Usuario (in Spanish) instead of UserName with @Html.DisplayNameFor(model => model.UserName). I went to the definition for the model.

ApplicationName.Models.ApplicationUser : IdentityUser : IdentityUser<string, IdentityUserLogin, IdentityUserRole, IdentityUserClaim>, IUser, IUser<string>.

In the last definition I have public virtual string UserName { get; set; }, but I cannot edit this file to add [Display(Name="Nombre de Usuario")]. Where to add it?

+4
source share

All Articles