mirror of
https://github.com/hmaxnl/DotBased.git
synced 2025-01-19 02:24:19 +01:00
25 lines
514 B
C#
25 lines
514 B
C#
namespace DotBased.AspNet.Authority.Models.Authority;
|
|
|
|
public abstract class AuthorityRole
|
|
{
|
|
public AuthorityRole(string name) : this()
|
|
{
|
|
Name = name;
|
|
}
|
|
|
|
public AuthorityRole()
|
|
{
|
|
Id = Guid.NewGuid();
|
|
CreatedDate = DateTime.Now;
|
|
}
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
public string? Name { get; set; }
|
|
|
|
public long Version { get; set; }
|
|
|
|
public DateTime CreatedDate { get; set; }
|
|
|
|
public override string ToString() => Name ?? string.Empty;
|
|
} |