Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all!

I've a question for you.

When i try to get a entity instance from context this returns me a entity with all linked entity.
this is the code:
C#
DAOMagConverters.tbl_ProjectToEntityProject((from parent in wTbl_Project.Include("tbl_ImagesGroup")
                                                                    where parent.Id == id
                                                                    select parent).First());

I want only project with imagesGroup.
It returns project with imagesGroup and much more linked entities.

How i can change this query??
Thank you,
Greats from Italy

PS: Sorry for my english.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900