<?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 : OData and IgnoreProperties attribute</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : OData and IgnoreProperties attribute</description>
  <pubDate>Wed, 13 May 2026 11:52:39 -700</pubDate>
  <lastBuildDate>Tue, 07 Feb 2012 13:18:04 -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=2578</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>OData and IgnoreProperties attribute : I did not try this.You are correct.My...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;PID=12626#12626</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> 2578<br /><strong>Posted:</strong> 07-Feb-2012 at 1:18pm<br /><br />I did not try this.&nbsp;You are correct.&nbsp;My bad chuckc. I apologize. This was an old post and for some reason, I forgot that the IgnorePropertiesAttribute is generated by DevForce template.<div><br></div><div>I will re-open the feature request. For now, the workaround is providing your own custom template as shown above.</div>]]>
   </description>
   <pubDate>Tue, 07 Feb 2012 13:18:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;PID=12626#12626</guid>
  </item> 
  <item>
   <title>OData and IgnoreProperties attribute : Did you try this? It doesn&amp;#039;t...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;PID=12625#12625</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=705" rel="nofollow">chuckc</a><br /><strong>Subject:</strong> 2578<br /><strong>Posted:</strong> 07-Feb-2012 at 12:13pm<br /><br /><div>Did you try this? &nbsp;It doesn't work for me.&nbsp;</div><div><br></div><div>Since there is already an existing IgnoreProperties on the partial class in the generated xxx.IB.Designer.cs file, when you add another IgnoreProperties to the partial in the developer file I get a "Duplicate 'IgnoreProperties' attribute" compile error.</div><div><br></div><div>I also already tried &#091;IgnoreDataMember&#093; directly on the offending property, and that didn't seem to work either. &nbsp;No errors, it just seems to have no effect.</div><div><br></div><div>Thanks.</div>]]>
   </description>
   <pubDate>Tue, 07 Feb 2012 12:13:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;PID=12625#12625</guid>
  </item> 
  <item>
   <title>OData and IgnoreProperties attribute : Hi chuckc,This feature request...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;PID=12624#12624</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> 2578<br /><strong>Posted:</strong> 07-Feb-2012 at 11:39am<br /><br />Hi chuckc,<div><br></div><div>This feature request has been put on hold because, since the entity classes are partial classes, we can actually add whatever attributes we want to them.&nbsp;</div><div><br></div><div>For example, in this case, instead of generating the IgnoreProperties attribute to the Customer class in the IB.Designer.cs, we can add it to the partial class in our own Customer.cs</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>&nbsp; &#091;IgnoreProperties(@"EntityAspect", @"BaseString")&#093;</div><div>&nbsp; public partial class Customer {</div></div><div>&nbsp; }</div><div></pre></td></tr></table></div><div><br></div><div>You can still customize the template generation if you require multiple modifications.</div>]]>
   </description>
   <pubDate>Tue, 07 Feb 2012 11:39:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;PID=12624#12624</guid>
  </item> 
  <item>
   <title>OData and IgnoreProperties attribute : Is there any update to IgnoreProperties...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;PID=12622#12622</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=705" rel="nofollow">chuckc</a><br /><strong>Subject:</strong> 2578<br /><strong>Posted:</strong> 07-Feb-2012 at 8:50am<br /><br />Is there any update to IgnoreProperties support? &nbsp;Any timeline on the metadata buddy class?<div><br></div><div>Thanks.</div>]]>
   </description>
   <pubDate>Tue, 07 Feb 2012 08:50:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;PID=12622#12622</guid>
  </item> 
  <item>
   <title>OData and IgnoreProperties attribute : For those who are interested,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;PID=10297#10297</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> 2578<br /><strong>Posted:</strong> 28-Mar-2011 at 11:14am<br /><br />For those who are interested, this is how you would override the default T4 template.<div><br></div><div><div>public class MyTemplate : DomainModelTemplate {</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>public MyTemplate(Microsoft.VisualStudio.TextTemplating.TextTransformation textTransformation)</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>: base(textTransformation) {}</div><div><span ="Apple-tab-span" style="white-space:pre">	</span></div><div><span ="Apple-tab-span" style="white-space:pre"></span><span ="Apple-tab-span" style="white-space:pre">	</span>protected override void WriteEntityODataAttributes(EntityTypeWrapper entityType) {</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>WriteAttribute("IgnoreProperties(" + SafeQuote("EntityAspect") + ", " + SafeQuote("BaseString") + ")");</div><div><span ="Apple-tab-span" style="white-space:pre">		</span>WriteAttribute("DataServiceKey(" + SafeQuote("CustomerID") + ")");</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>}</div><div>}</div></div><div><br></div><div>This is a very simplified example but it should give the general idea. A feature request has already been submitted to support a metadata buddy class which can be used to override the generated attribute.</div>]]>
   </description>
   <pubDate>Mon, 28 Mar 2011 11:14:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;PID=10297#10297</guid>
  </item> 
  <item>
   <title>OData and IgnoreProperties attribute :  Hi tersiusk;It looks like you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;PID=10267#10267</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> 2578<br /><strong>Posted:</strong> 23-Mar-2011 at 2:12pm<br /><br />Hi tersiusk;<div><br></div><div>It looks like you will need to customize the T4 template to add the extra properties to the IgnoreProperties attribute.</div><div><br></div><div>Please see&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/Customizing-DevForce-Code-Generati&#111;n-Template" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/Customizing-DevForce-Code-Generation-Template</a>&nbsp;for tutorial on how to customize the T4 template.</div><span style="font-size:10px"><br /><br />Edited by DenisK - 23-Mar-2011 at 2:15pm</span>]]>
   </description>
   <pubDate>Wed, 23 Mar 2011 14:12:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;PID=10267#10267</guid>
  </item> 
  <item>
   <title>OData and IgnoreProperties attribute : HiI have an entity base class...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;PID=10245#10245</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=988" rel="nofollow">tersiusk</a><br /><strong>Subject:</strong> 2578<br /><strong>Posted:</strong> 22-Mar-2011 at 7:46am<br /><br />Hi<div><br></div><div>I have an entity base class for all my entities an I have also enabled OData. Now it seems that there are some properties in my EntityBase class that is not supported by OData/WCF data services. I did add the IgnoreProperties attribute to my base class but it seems to be overridden by the generated&nbsp;IgnoreProperties attribute in the IB.Designer file.</div><div><br></div><div>How can I add my own&nbsp;IgnoreProperties &nbsp;attribute?</div><div><br></div><div>Regards</div>]]>
   </description>
   <pubDate>Tue, 22 Mar 2011 07:46:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;PID=10245#10245</guid>
  </item> 
 </channel>
</rss>