using System; using System.Linq.Expressions; using Comal.Classes; using InABox.Core; using System.Diagnostics.CodeAnalysis; namespace comal.timesheets { public class JobEmployeeModel : ListModel { public JobEmployeeModel(IModelHost host, Func> filter, bool transient = false) : base(host, filter, transient) { } public JobEmployeeModel(IModelHost host, Func> filter, [NotNull] String filename) : base(host, filter, filename) { } public static Filter AllJobs() => new Filter(x => x.EmployeeLink.ID).IsEqualTo(App.Data.Me.ID); // public override Columns<(.+)> Columns => JobEmployeeShell.Columns.Columns; protected override Expression> ImageColumn => x => x.EmployeeLink.Thumbnail.ID; } }