<?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 : &#039;EntityState&#039; property not available?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : &#039;EntityState&#039; property not available?</description>
  <pubDate>Sat, 11 Apr 2026 12:37:53 -700</pubDate>
  <lastBuildDate>Mon, 21 May 2012 19:36:56 -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=3446</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>&#039;EntityState&#039; property not available? : Ah yes, that&amp;#039;s perfect.  Maybe...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3446&amp;PID=13620#13620</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1456" rel="nofollow">TonyHansen</a><br /><strong>Subject:</strong> 3446<br /><strong>Posted:</strong> 21-May-2012 at 7:36pm<br /><br />Ah yes, that's perfect.<DIV>&nbsp;</DIV><DIV>Maybe I need to go right back to basics, and RTFM! :-D</DIV><DIV>&nbsp;</DIV><DIV>Thanks for the quick reply!</DIV><DIV><BR>T</DIV>]]>
   </description>
   <pubDate>Mon, 21 May 2012 19:36:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3446&amp;PID=13620#13620</guid>
  </item> 
  <item>
   <title>&#039;EntityState&#039; property not available? : Hi TonyHansen,See if this DRC...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3446&amp;PID=13611#13611</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3446<br /><strong>Posted:</strong> 21-May-2012 at 12:26pm<br /><br />Hi TonyHansen,<div><br></div><div>See if this DRC might help.&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/code-first-entityaspect" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/code-first-entityaspect</a></div>]]>
   </description>
   <pubDate>Mon, 21 May 2012 12:26:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3446&amp;PID=13611#13611</guid>
  </item> 
  <item>
   <title>&#039;EntityState&#039; property not available? : Hmmm ... I think I&amp;#039;ll really...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3446&amp;PID=13604#13604</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1456" rel="nofollow">TonyHansen</a><br /><strong>Subject:</strong> 3446<br /><strong>Posted:</strong> 19-May-2012 at 12:58am<br /><br />Hmmm ... I think I'll really be&nbsp;demonstrating my newbie cred now ...<DIV>&nbsp;</DIV><DIV>Trying to perform a simple entity deletion, as outlined here:</DIV><DIV>&nbsp;</DIV><DIV><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/entity-deleti&#111;n" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/entity-deletion</A></DIV><DIV>&nbsp;</DIV><DIV>Only one minor problem ... none of my entities appear to have an "EntityAspect" property I can change!</DIV><DIV>&nbsp;</DIV><DIV>I get my entity from the backend store like this:</DIV><DIV>&nbsp;</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><P>var</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> contactType = manager.Gen_ContactType</P><DIV>.Where(c =&gt; c.ContactTypeId == 7)</DIV><P>.FirstOrNullEntity();</P><DIV></DIV><DIV>The contactType entity that is returned has all the properties I expect ... but no "EntityAspect" property.</DIV><DIV>&nbsp;</DIV><DIV>Interestingly, when I bound a grid to the object class in my domain model, the grid is actually showing an "EntityAspect" property.</DIV><DIV>&nbsp;</DIV><DIV>So ... what am I doing wrong?</DIV><DIV>&nbsp;</DIV><DIV>I will point out that I used the "Code Second" method of generation, and opted to include the OData option during creation.&nbsp; As a result, my class header looks like this:</DIV><DIV>&nbsp;</DIV><FONT color=#808080 size=2 face=C&#111;nsolas><FONT color=#808080 size=2 face=C&#111;nsolas><FONT color=#808080 size=2 face=C&#111;nsolas><P>///</FONT></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> </FONT></FONT></FONT><FONT color=#808080 size=2 face=C&#111;nsolas><FONT color=#808080 size=2 face=C&#111;nsolas><FONT color=#808080 size=2 face=C&#111;nsolas>&lt;summary&gt;</FONT></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>The auto-generated Gen_ContactType class. </FONT></FONT></FONT><FONT color=#808080 size=2 face=C&#111;nsolas><FONT color=#808080 size=2 face=C&#111;nsolas><FONT color=#808080 size=2 face=C&#111;nsolas>&lt;/summary&gt;</P></FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P>&#091;IbAop.</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>ProvideEntityAspect</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>&#093;</P><DIV>&#091;</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>DataContract</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>(IsReference = </FONT></FONT><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>true</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>)&#093;</DIV><P>&#091;</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>Table</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>(</FONT></FONT><FONT color=#800000 size=2 face=C&#111;nsolas><FONT color=#800000 size=2 face=C&#111;nsolas><FONT color=#800000 size=2 face=C&#111;nsolas>"Gen_ContactType"</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>, Schema = </FONT></FONT><FONT color=#800000 size=2 face=C&#111;nsolas><FONT color=#800000 size=2 face=C&#111;nsolas><FONT color=#800000 size=2 face=C&#111;nsolas>"dbo"</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>)&#093;</P><P>&#091;</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>IgnoreProperties</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>(</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>@"EntityAspect"</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>)&#093;</P><P>&#091;</FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>DataServiceKey</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>(</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>@"ContactTypeId"</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>)&#093;</P><P></FONT></FONT><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>public</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><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>partial</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><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>class</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas> </FONT></FONT><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas><FONT color=#2b91af size=2 face=C&#111;nsolas>Gen_ContactType</P></FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P>{</P><DIV></DIV><DIV>All of the samples I've seen appear to pre-date the incorporation of PostSharp, and none seem to have the "EntityAspect" in the "IgnoreProperties".</DIV><DIV>&nbsp;</DIV><DIV>I've tried removing the "IgnoreProperties" attribute ... but that doesn't appear to make any difference.</DIV><DIV>&nbsp;</DIV><DIV>Any suggestions?</DIV><DIV>&nbsp;</DIV><DIV>T</FONT></FONT></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Sat, 19 May 2012 00:58:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3446&amp;PID=13604#13604</guid>
  </item> 
 </channel>
</rss>