I have an SQL-Statement that I have to transfer to Entity Framework:
select * from logbuch where institutionid = @id OR userid IN (SELECT id from benutzerkonto where institution_id = @id)
I have as EntityFramework:
context.logbuch.Where(x => x.institutionid == int.Parse(benutzerkontoID) || x.userid ???INSIDE SUBSELECT???).ToList();
I am very new in EF & LINQ and I don't know how it is possiple to integrate the subselect-condition right side of OR.
Can someone help me realising this in a EntityFramework-Query?
Thanks for helping!