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