Warning: Invalid argument supplied for foreach() in D:\home\site\wwwroot\wp-includes\translations.php on line 1174 Warning: Invalid argument supplied for foreach() in D:\home\site\wwwroot\wp-includes\translations.php on line 1367

Updated with statements that can be executed or deferred. // Example models public class SomeModel { public int Id { get; set; } public string Name { get; set; } public List Items { get; set; } } public class SomeOtherModel { public int Id { get; set; } public string Text { get; set; } } //Expression mapper - not executed public Expr<Func> Map_SomeTable_SomeModel_Expr() { return x => new SomeModel { Id = x.Id, Name = x.Name, Items = db.SomeOtherTable.Where(y => y.SomeTableId == x.Id).Select(Map_SomeOtherTable_SomeOtherModel_Expr()).ToList() } } //Function mapper -...