私は4つのテーブルを持っています:
- Client with PK ClientID.
- Destination with PK DestinationID.
- Language with PK LanguageID.
- DestinationDetail with PK DestinationID.
- RL-Client-Destination with PKs ClientID and DestinationID.
クライアントには、ゼロまたはn個の宛先があります。宛先にはn個のDestinationDetailsがあり、これらの各DestinationDetailには言語があります。
Ok。特定のクライアントと特定の言語のすべてのDestinationDetailsを取得する必要があります。
私はこれを書き始めます:
try
{
ObjectQuery clientes =
guiaContext.Cliente;
ObjectQuery destinos =
guiaContext.Destino;
ObjectQuery idiomas =
guiaContext.Idioma;
ObjectQuery detalles =
guiaContext.DetalleDestino;
IQueryable detalleQuery =
from cliente in clientes
from destino in destinos
from idioma in idiomas
from detalleDestino in detalles
where destino.
select detalleDestino;
}
catch
{
}
}
何かアドバイス?
ありがとう!