using System.Linq.Expressions; using WatchIt.Database.Model.Roles; namespace WatchIt.DTO.Models.Controllers.Roles.Role; public class RoleOrderKeys { public static Dictionary>> Base() where T : Database.Model.Roles.Role => new Dictionary>> { { "person", item => item.PersonId }, { "medium", item => item.MediumId }, { "medium.release_date", item => item.Medium.ReleaseDate } }; public static readonly Dictionary>> RoleActor = new Dictionary>> { { "type_id", x => x.ActorTypeId }, { "name", x => x.Name }, }; public static readonly Dictionary>> RoleCreator = new Dictionary>> { { "type_id", x => x.CreatorTypeId }, }; }