diff --git a/src/Microsoft.AspNetCore.Identity.EntityFrameworkCore/IdentityRole.cs b/src/Microsoft.AspNetCore.Identity.EntityFrameworkCore/IdentityRole.cs index 7498e8ce4a..01dbe30a5d 100644 --- a/src/Microsoft.AspNetCore.Identity.EntityFrameworkCore/IdentityRole.cs +++ b/src/Microsoft.AspNetCore.Identity.EntityFrameworkCore/IdentityRole.cs @@ -42,6 +42,19 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore public class IdentityRole : IdentityRole, IdentityRoleClaim> where TKey : IEquatable { + /// + /// Initializes a new instance of . + /// + public IdentityRole() { } + + /// + /// Initializes a new instance of . + /// + /// The role name. + public IdentityRole(string roleName) : this() + { + Name = roleName; + } } /// @@ -108,4 +121,4 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore return Name; } } -} \ No newline at end of file +}