<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Manupulate Object with Query</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Manupulate Object with Query</description>
  <pubDate>Wed, 15 Apr 2026 19:09:31 -700</pubDate>
  <lastBuildDate>Fri, 12 Nov 2010 11:22:43 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2282</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Manupulate Object with Query : Hi SilvioDue to some other work...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2282&amp;PID=9092#9092</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2282<br /><strong>Posted:</strong> 12-Nov-2010 at 11:22am<br /><br />Hi Silvio<br>Due to some other work I could not figure out this problem.<br>I will work on it and tell you result..<br><br>Thanks...<br>]]>
   </description>
   <pubDate>Fri, 12 Nov 2010 11:22:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2282&amp;PID=9092#9092</guid>
  </item> 
  <item>
   <title>Manupulate Object with Query : You mention that you &amp;#034;want...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2282&amp;PID=9067#9067</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2282<br /><strong>Posted:</strong> 10-Nov-2010 at 3:28pm<br /><br /><DIV>You mention that you "want to&nbsp;show Name from&nbsp; PESSOA_FISICA". Do you want to do that based on a given PESSOA_OBSERVACAO?<BR></DIV><DIV>If that's the case, you could do:</DIV><DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas></FONT></FONT></FONT>&nbsp;</DIV><DIV><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas><FONT color=#0000ff size=2 face=C&#111;nsolas>var</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> aPessoaFisicaName = pessoaObservacao.PESSOA.PESSOA_FISICA</DIV><DIV><DIV>&nbsp; .Where(pf =&gt; pf.CPF == </FONT></FONT><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas>"999999999"</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>)</DIV><DIV>&nbsp; .Select(pf =&gt; pf.Name);</DIV><DIV></FONT></FONT><FONT size=3 face="Times New Roman">&nbsp;</FONT></DIV><DIV>&nbsp;</DIV><DIV>or if you want to navigate from PESSOA_OBSERVACAO to PESSOA and finally to PESSOA_FISICA you could do</DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>name = mgr.PESSOA_OBSERVACAO</DIV><DIV><DIV></FONT></FONT><FONT color=#008000 size=2 face=C&#111;nsolas><FONT color=#008000 size=2 face=C&#111;nsolas><FONT color=#008000 size=2 face=C&#111;nsolas>&nbsp; //.With(QueryStrategy.CacheOnly)</DIV><DIV></FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><FONT color=#000000>&nbsp; .Select(po =&gt; po.PESSOA)</FONT></DIV><DIV>&nbsp; .SelectMany(p =&gt; p.PESSOA_FISICA)</DIV><DIV>&nbsp; .Where(pf =&gt; pf.CPF == </FONT></FONT><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas>"999999999"</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>)</DIV><DIV>&nbsp; .Select(pf =&gt; pf.Name)</DIV><DIV>&nbsp; .First();</DIV><DIV></FONT></FONT></DIV></DIV><DIV>&nbsp;Something to be aware about the query above is that if you do the query normally the QueryStrategy is "Normal" which uses an "optimized' fetch Strategy.&nbsp; This is normally DataSourceThenCache, but it the query cannot be inverted then it turns into a DataSourceOnly query.&nbsp;Therefore you would get no results (if the data is not saved to the datasource yet).</DIV><DIV>You will need to change your query strategy to DataSourceThenCache explicitly (AND turn off query inversion)&nbsp;then you will be able to get the results that you expect. You could also use CacheOnly strategy, but I don't think it'd be the best approach.</DIV><DIV>&nbsp;</DIV><DIV>Please let me know if this is the answer that you are looking for.</DIV><DIV>&nbsp;</DIV><DIV>Regards,</DIV><DIV>&nbsp;&nbsp; Silvio.</DIV></DIV>]]>
   </description>
   <pubDate>Wed, 10 Nov 2010 15:28:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2282&amp;PID=9067#9067</guid>
  </item> 
  <item>
   <title>Manupulate Object with Query :  Hii&#194;&#180;m sending code plus my...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2282&amp;PID=9015#9015</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2282<br /><strong>Posted:</strong> 03-Nov-2010 at 11:06am<br /><br />Hi<br>i´m sending code plus my Enitiy model diagram.<br><br>//Here i have object name PessoaObservacao and try to adding data<br><p>PESSOA_TIPO_USUARIO&nbsp;usuario&nbsp;=&nbsp;(EntitiesCrmall.DefaultManager.Principal&nbsp;as&nbsp;PESSOA_TIPO_USUARIO);</p><p>&nbsp;&nbsp;&nbsp;&nbsp; PessoaObservacao&nbsp; = new PESSOA_OBSERVACAO; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PessoaObservacao.FK_USUARIO&nbsp;=&nbsp;usuario.FK_PESSOA;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PessoaObservacao.OBSERVACAO&nbsp;=&nbsp;textEdit1.Text;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PessoaObservacao.PRIVADO&nbsp;=&nbsp;chkPrivado.IsChecked&nbsp;==&nbsp;true&nbsp;?&nbsp;"S"&nbsp;:&nbsp;"N";</p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pessoa.PESSOA_OBSERVACAO.Add(PessoaObservacao);<br><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DialogResult&nbsp;=&nbsp;true;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br></p><p>Now I am setting PessoaObervacao object in Observablecollection of type&nbsp; &nbsp; PESSOA_OBSERVACAO.</p><p>Then I display that data on grid.But i want to show&nbsp; Name from&nbsp; PESSOA_FISICA. <br></p><p>I am attaching my Entity model image...</p><img src="uploads/896/derD_2.jpg" height="660" width="650" border="0" />]]>
   </description>
   <pubDate>Wed, 03 Nov 2010 11:06:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2282&amp;PID=9015#9015</guid>
  </item> 
  <item>
   <title>Manupulate Object with Query : Hi,   Not sure I understand...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2282&amp;PID=9014#9014</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2282<br /><strong>Posted:</strong> 03-Nov-2010 at 10:29am<br /><br />Hi, <DIV>&nbsp;</DIV><DIV>Not sure I understand what you are trying to do... Can you clarify?</DIV><DIV>By the way, are you adding your entity (object) to the Entity Manager? (i.e.&nbsp;<FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>em.AddEntity(entity)</FONT></FONT> or&nbsp;<FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>entity.AddToManager()</FONT></FONT> )</DIV>]]>
   </description>
   <pubDate>Wed, 03 Nov 2010 10:29:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2282&amp;PID=9014#9014</guid>
  </item> 
  <item>
   <title>Manupulate Object with Query : hi I am creating an object and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2282&amp;PID=9013#9013</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2282<br /><strong>Posted:</strong> 03-Nov-2010 at 9:50am<br /><br />hi <br>I am creating an object and inserting some values in object.Then i manupulating with<br>this object with navigation.<br>Its not able to manupulate object with navigation property..<br><br>How can add or manupulated object with navigation before saving in database...<br><br>Any Help?<br>]]>
   </description>
   <pubDate>Wed, 03 Nov 2010 09:50:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2282&amp;PID=9013#9013</guid>
  </item> 
 </channel>
</rss>