DotBased/DotBased.AspNet.Authority/Models/Authority/AuthorityAttribute.cs

18 lines
464 B
C#
Raw Normal View History

namespace DotBased.AspNet.Authority.Models.Authority;
2025-02-02 23:33:00 +01:00
public class AuthorityAttribute(string attributeKey, Guid bound)
{
2025-02-02 23:33:00 +01:00
public AuthorityAttribute() : this(string.Empty, Guid.NewGuid())
{
}
2025-02-02 23:33:00 +01:00
public Guid BoundId { get; set; } = bound;
2025-02-02 23:33:00 +01:00
public string AttributeKey { get; set; } = attributeKey;
2025-02-02 23:33:00 +01:00
public string AttributeValue { get; set; } = string.Empty;
2025-02-02 23:33:00 +01:00
public string? Type { get; set; }
public long Version { get; set; }
}