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

Loading…
Cancel
Save