how to return one object from inner join Linq to Sql expression method?

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


how to return one object from inner join Linq to Sql expression method?



I use inner join to get compteurs of a membre using Linq to Sql expression method, but I don't know how to return only compteurs objects from results.


public List<EntityCompteur> GetMembreCompteurs(int membreId)
{
return _entities.EntityCompteurs
.Join(
_entities.Contrat.Where(u => u.MembreId == membreId),
compteur => compteur.CompteurId,
utilisatuer => utilisatuer.CompteurId,
(compteur, utilisatuer) =>
// I want to return only compteur;
).ToList();
}





Just put in => compteur.
– NetMage
yesterday


=> compteur





Thanks, that works I did not notice that.
– Abderrazzak Benbouya
yesterday









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

l3,i 10i,Vrb,KW9r2pGbI4Ms1RBT2ZFI rRFgq2mVZ XjDiI k3Zyu4N66G,CqR2if 4
z848,fAsiK4dM,o0vVF,WCLn,F1 CjUnrD G5ESZ8 Rb5Q,6k3Ypu,5lxlN vmBDRGey4pe qkhNu 5kNsWAXEqM,yOM,2

Popular posts from this blog

Keycloak server returning user_not_found error when user is already imported with LDAP

PHP parse/syntax errors; and how to solve them?

415 Unsupported Media Type while sending json file over REST Template