Entity framework. Need help filtering results

后端 未结 3 637
傲寒
傲寒 2021-01-21 15:46

Need to select data in entity framework but need to filter on the childrent and grandchildren

i have 4 tables. Parent -> Child -> GrandChild -> GreatGran

3条回答
  •  死守一世寂寞
    2021-01-21 16:06

    Using linq you should need something like this.

    var q = from q1 in dbContext.Parent
            join q2 in dbContext.Children
            on q1.key equals q2.fkey
            join q3 in  ........
            where q4.col1 == 3000
            select q1;
    

提交回复
热议问题