DotBased/DotBased.AspNet.Authority/Models/Authority/AuthorityRole.cs

19 lines
433 B
C#
Raw Normal View History

namespace DotBased.AspNet.Authority.Models.Authority;
2025-01-27 01:21:09 +01:00
public abstract class AuthorityRole()
{
2025-01-08 16:30:51 +01:00
public AuthorityRole(string name) : this()
{
Name = name;
}
2025-01-27 01:21:09 +01:00
public Guid Id { get; set; } = Guid.NewGuid();
public string? Name { get; set; }
public long Version { get; set; }
2025-01-27 01:21:09 +01:00
public DateTime CreatedDate { get; set; } = DateTime.Now;
public override string ToString() => Name ?? string.Empty;
}