Fixed missed constructor

This commit is contained in:
雨宮丶優子 2016-07-24 21:09:17 +08:00 committed by Hao Kung
parent 1a0cd3c4d1
commit eabec2b476
1 changed files with 14 additions and 1 deletions

View File

@ -42,6 +42,19 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore
public class IdentityRole<TKey> : IdentityRole<TKey, IdentityUserRole<TKey>, IdentityRoleClaim<TKey>>
where TKey : IEquatable<TKey>
{
/// <summary>
/// Initializes a new instance of <see cref="IdentityRole{TKey}"/>.
/// </summary>
public IdentityRole() { }
/// <summary>
/// Initializes a new instance of <see cref="IdentityRole{TKey}"/>.
/// </summary>
/// <param name="roleName">The role name.</param>
public IdentityRole(string roleName) : this()
{
Name = roleName;
}
}
/// <summary>
@ -108,4 +121,4 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore
return Name;
}
}
}
}