From eabec2b47618208432e56ec17e1ea8ebd5a4e157 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=A8=E5=AE=AE=E4=B8=B6=E5=84=AA=E5=AD=90?= <1@1234.sh> Date: Sun, 24 Jul 2016 21:09:17 +0800 Subject: [PATCH] Fixed missed constructor --- .../IdentityRole.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 +}