// 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 System.Collections.Generic; using Microsoft.AspNetCore.Identity.EntityFrameworkCore; namespace Microsoft.AspNetCore.Identity.Compat { public class IdentityRole : IdentityRole { /// /// Constructor /// public IdentityRole() { Id = Guid.NewGuid().ToString(); } /// /// Constructor /// /// public IdentityRole(string roleName) : this() { Name = roleName; } } public class IdentityRole : Microsoft.EntityFrameworkCore.IdentityRole where TUserRole : IdentityUserRole { /// /// Normalized role name /// public virtual string NormalizedName { get; set; } /// /// Concurrency stamp /// public virtual string ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString(); /// /// Navigation property for claims in the role /// public virtual ICollection> Claims { get; } = new List>(); } }