Is it possible to use inner join on tables with linq, and put the value in a list so i can place it in a webgrid?
Little code i want to add another table to the linq and fill the rest so i can show it on the view !
List<vakantieList> Freedayslist = new List<vakantieList>();
/*Create instance of entity model*/
GemeenteLeerdanEntities2 db = new GemeenteLeerdanEntities2();
var result = (from data in db.Freedays
select data);
foreach (var item in result)
{
Freedayslist.Add(new vakantieList
{
FreeDaysID = item.FreeDaysID,
BSN = item.BSN,
FirstName = item.FirstName,
LastName = item.LastName,
TotalDays = item.TotalDays,
DaysUsed = item.DaysUsed,
DaysRemaining = item.DaysRemaining,
PersonalID = item.PersonalID,
});
}