[CHANGE] Removed generics and using base classes

This commit is contained in:
max
2025-01-08 15:55:00 +01:00
parent 12efc92ac4
commit 90cd0a2828
14 changed files with 77 additions and 105 deletions

View File

@@ -2,7 +2,7 @@ using DotBased.AspNet.Authority.Attributes;
namespace DotBased.AspNet.Authority.Models.Authority;
public class AuthorityUser : AuthorityUser<Guid>
public class AuthorityUser
{
public AuthorityUser(string userName) : this()
{
@@ -14,15 +14,9 @@ public class AuthorityUser : AuthorityUser<Guid>
Id = Guid.NewGuid();
CreatedDate = DateTime.Now;
}
}
public abstract class AuthorityUser<TKey> : AuthorityUserBase where TKey : IEquatable<TKey>
{
public TKey Id { get; set; }
}
public abstract class AuthorityUserBase
{
public Guid Id { get; set; }
public bool Enabled { get; set; }
public bool Confirmed { get; set; }