using System.Collections.Generic;
public static void Main()
Console.WriteLine("Hello World");
public class UserClaimsResponseModel
public Guid UserId { get; set; } = default!;
public ICollection<int> Buildings { get; set; } = new List<int>();
public ICollection<int> Districts { get; set; } = new List<int>();
public ICollection<int> Students { get; set; } = new List<int>();
public abstract class BaseDto<TDto, TEntity> : IRegister
where TDto : class, new()
where TEntity : class, new()
public TEntity ToEntity()
return this.Adapt<TEntity>();
public TEntity ToEntity(TEntity entity)
return (this as TDto).Adapt(entity);
public static TDto FromEntity(TEntity entity)
return entity.Adapt<TDto>();
private TypeAdapterConfig Config { get; set; }
#pragma warning disable CS8618
#pragma warning restore CS8618
public virtual void AddCustomMappings() { }
protected TypeAdapterSetter<TDto, TEntity> SetCustomMappings() =>
Config.ForType<TDto, TEntity>();
protected TypeAdapterSetter<TEntity, TDto> SetCustomMappingsInverse() =>
Config.ForType<TEntity, TDto>();
public void Register(TypeAdapterConfig config)