how to use “where…in” in subsonicproject
-
30-10-2019 - |
Frage
I am using subsonicproject and the activerecord pattern.
I have a database with three tables: Cities, Concerthalls, Concerts. Each Concerthall has a foreign-key relationship to a City. Each Concert has a foreign-key relationship to a Concerthall.
I would like to retrieve all concerts within a given city. So I need to get all the Concerthall-ids for a city and pass them to subsonicproject. In "normal" sql I would use the "where ... in"-statement, but how do I do it with subsonicproject?
I am thinking about something like (pseudocode): List concertHallsId=xxxxxxx; Concerts.Find(concert.ConcertHallId in concertHallIds);
thanks Thomas
Keine korrekte Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow