Requete sql

rawiaGL Messages postés 18 Date d'inscription   Statut Membre Dernière intervention   -  
Kalissi Messages postés 218 Date d'inscription   Statut Membre Dernière intervention   -
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 218 Date d'inscription   Statut Membre Dernière intervention   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