I have this Linq C# query in my code:
var res = from i in context.Instrument
join g in context.FtpServerGroup on i.FtpServerGroupId equals g.Id
join f in context.FtpServer on g.Id equals f.FtpServerGroupId
where i.Deleted && f.NetAddress == netaddress
select i;
I need to translate it to another syntax (LINQ extension methods), used by .NET core, here an example not related to the previous query:
context.Instrument.Where(w => !w.Deleted).Include(x => x.FtpServerGroup).ThenInclude(x => x.FtpServers).FirstAsync(i => i.Id == id);
My question is, I couldn't find a way to convert the first query (a triple join) into the other syntax. Any advice on how to find some documentation or how to do it?