<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Entity Framework : Filter child entities in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/entity-framework-filter-child-entities/qaa-p/13848745#M4879588</link>
    <description>&lt;P&gt;This seems to be basically an EF question. Is that question related to SQL Anywhere (except the fact that one can use EF with SQL Anywhere)?&lt;/P&gt;</description>
    <pubDate>Mon, 02 Feb 2015 05:04:58 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2015-02-02T05:04:58Z</dc:date>
    <item>
      <title>Entity Framework : Filter child entities</title>
      <link>https://community.sap.com/t5/technology-q-a/entity-framework-filter-child-entities/qaq-p/13848744</link>
      <description>&lt;P&gt;Hello !&lt;/P&gt;
&lt;P&gt;I'm using VB.net and entity Framework.
 I have situation where depending on several conditions I construct a query step by step .&lt;/P&gt;
&lt;P&gt;This is the code :(Article has 2 relationship with F1 and F2)&lt;/P&gt;
&lt;PRE class="codehilite"&gt;&lt;CODE&gt;Dim list1 As IEnumerable(Of Article)
     list1 = From t In context.Articles.Include("F1").Include("F2") Order By t.name Ascending
                 Select t
     If condition1 then
         list1 = list1.Where(Function(t2) t2.tp = 1)
     End If
     If condition2 then
         list1 = list1.Where(Function(t2) t2.id = 7)
     End If
     Myreport.datasource=list1.ToList()


&lt;P&gt;This code is working , but now I want to add a new condition , and if this is true the child "F1" should be filtered.&lt;/P&gt;
&lt;P&gt;How can I filter the Child "F1" &lt;/P&gt;
&lt;P&gt;Thank you !&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 31 Jan 2015 17:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/entity-framework-filter-child-entities/qaq-p/13848744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-31T17:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Entity Framework : Filter child entities</title>
      <link>https://community.sap.com/t5/technology-q-a/entity-framework-filter-child-entities/qaa-p/13848745#M4879588</link>
      <description>&lt;P&gt;This seems to be basically an EF question. Is that question related to SQL Anywhere (except the fact that one can use EF with SQL Anywhere)?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2015 05:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/entity-framework-filter-child-entities/qaa-p/13848745#M4879588</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2015-02-02T05:04:58Z</dc:date>
    </item>
  </channel>
</rss>

