// Copyright (c) Microsoft Corporation, Inc. All rights reserved. // Licensed under the MIT License, Version 2.0. See License.txt in the project root for license information. using System; using Microsoft.AspNet.Identity.EntityFramework; namespace Microsoft.AspNet.Identity.Compat { public class IdentityUser : IdentityUser { /// /// Constructor which creates a new Guid for the Id /// public IdentityUser() { Id = Guid.NewGuid().ToString(); } /// /// Constructor that takes a userName /// /// public IdentityUser(string userName) : this() { UserName = userName; NormalizedUserName = userName.ToUpperInvariant(); } } public class IdentityUser : EntityFramework.IdentityUser where TUserLogin : IdentityUserLogin where TUserRole : IdentityUserRole where TUserClaim : IdentityUserClaim { public string NormalizedUserName { get; set; } /// /// Normalized email /// public string NormalizedEmail { get; set; } /// /// Concurrency stamp /// public virtual string ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString(); } }