Requete sql

rawiaGL Messages postés 23 Statut Membre -  
Kalissi Messages postés 221 Statut Membre -
bonsoir,
qui peut me dire comment écrire ma requête suivante en Linq to Entity

select sum(distance)
from Vols,Voyageur
where (Vols.Id_vol = Voyageur.Id_vol)
And (select datepart(year,vols.Date_dep)) = (select datepart(year,getdate()))

1 réponse

Kalissi Messages postés 221 Statut Membre 20
 
Bonjour,

Est-ce genre de requête que tu cherche à construire ?

Ex. 1

LsCollecAliments = (From EntX As TYP_ALI_ENT In TmpLst Select EntX Order By EntX.Code_Identification).ToList


Ex. 2
Dim LstTmpMod As List(Of Type_Entite) = (From EntY As Type_Entite In pCol Select EntY Where EntY.EstModifier = True).ToList

K
0