Browse Source

Update IdentityClaimType.cs

pull/9838/head
enisn 5 years ago
parent
commit
780d412406
  1. 9
      modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityClaimType.cs

9
modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/IdentityClaimType.cs

@ -18,7 +18,7 @@ namespace Volo.Abp.Identity
public virtual string Description { get; set; } public virtual string Description { get; set; }
public virtual IdentityClaimValueType ValueType { get; protected set; } public virtual IdentityClaimValueType ValueType { get; set; }
protected IdentityClaimType() protected IdentityClaimType()
{ {
@ -36,7 +36,7 @@ namespace Volo.Abp.Identity
IdentityClaimValueType valueType = IdentityClaimValueType.String) IdentityClaimValueType valueType = IdentityClaimValueType.String)
{ {
Id = id; Id = id;
Name = Check.NotNull(name, nameof(name)); SetName(name);
Required = required; Required = required;
IsStatic = isStatic; IsStatic = isStatic;
Regex = regex; Regex = regex;
@ -44,5 +44,10 @@ namespace Volo.Abp.Identity
Description = description; Description = description;
ValueType = valueType; ValueType = valueType;
} }
public void SetName([NotNull] string name)
{
Name = Check.NotNull(name, nameof(name));
}
} }
} }

Loading…
Cancel
Save