[CHANGE] Adding functionality to manager
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
namespace DotBased.AspNet.Authority.Models.Authority;
|
||||
|
||||
public class AuthorityAttribute(string attributeKey, Guid bound)
|
||||
public class AuthorityAttribute(string attributeKey, Guid foreignKey)
|
||||
{
|
||||
public AuthorityAttribute() : this(string.Empty, Guid.NewGuid())
|
||||
{
|
||||
}
|
||||
|
||||
public Guid BoundId { get; set; } = bound;
|
||||
public Guid ForeignKey { get; set; } = foreignKey;
|
||||
|
||||
public string AttributeKey { get; set; } = attributeKey;
|
||||
|
||||
|
@@ -9,7 +9,7 @@ public class AuthorityRole()
|
||||
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
|
||||
public string? Name { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public long Version { get; set; }
|
||||
|
||||
@@ -17,5 +17,5 @@ public class AuthorityRole()
|
||||
|
||||
public IEnumerable<AuthorityAttribute> Attributes { get; set; } = [];
|
||||
|
||||
public override string ToString() => Name ?? string.Empty;
|
||||
public override string ToString() => Name;
|
||||
}
|
Reference in New Issue
Block a user