<?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 : Setting IgnorePropertiesAttribute on a generated entity</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Setting IgnorePropertiesAttribute on a generated entity</description>
  <pubDate>Wed, 13 May 2026 09:41:29 -700</pubDate>
  <lastBuildDate>Wed, 29 Feb 2012 13:58:27 -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=3295</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>Setting IgnorePropertiesAttribute on a generated entity : Thanks for the good suggestion...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3295&amp;PID=12864#12864</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> 3295<br /><strong>Posted:</strong> 29-Feb-2012 at 1:58pm<br /><br />Thanks for the good suggestion alexander. I've added that to our feature request list.]]>
   </description>
   <pubDate>Wed, 29 Feb 2012 13:58:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3295&amp;PID=12864#12864</guid>
  </item> 
  <item>
   <title>Setting IgnorePropertiesAttribute on a generated entity : Thank you, I guess I will have...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3295&amp;PID=12853#12853</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1394" rel="nofollow">alexander</a><br /><strong>Subject:</strong> 3295<br /><strong>Posted:</strong> 29-Feb-2012 at 12:48am<br /><br />Thank you, I guess I will have to resort to that.<br><br>For the future, though, you might consider letting people set that they want properties ignored directly in the settings for that property. I can tell you've already managed to hook into the EDMX editor, seeing how there are properties under a "DevForce Code Generation" category. Just add a "Ignore in OData" or something of that sort in there.<br>]]>
   </description>
   <pubDate>Wed, 29 Feb 2012 00:48:12 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3295&amp;PID=12853#12853</guid>
  </item> 
  <item>
   <title>Setting IgnorePropertiesAttribute on a generated entity : Hi alexander,For the time being,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3295&amp;PID=12809#12809</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> 3295<br /><strong>Posted:</strong> 24-Feb-2012 at 3:03pm<br /><br />Hi alexander,<div><br></div><div>For the time being, you can override the code generation by overriding the default T4 template. A feature request has been submitted for this to be supported without messing with the code generation.</div><div><br></div><div>See&nbsp;<a href="http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;title=odata-and-ignoreproperties-attribute" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=2578&amp;title=odata-and-ignoreproperties-attribute</a>&nbsp;for my response to another customer with the same issue.</div>]]>
   </description>
   <pubDate>Fri, 24 Feb 2012 15:03:35 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3295&amp;PID=12809#12809</guid>
  </item> 
  <item>
   <title>Setting IgnorePropertiesAttribute on a generated entity : I&amp;#039;m trying to expose my entity...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3295&amp;PID=12779#12779</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1394" rel="nofollow">alexander</a><br /><strong>Subject:</strong> 3295<br /><strong>Posted:</strong> 24-Feb-2012 at 1:19am<br /><br />I'm trying to expose my entity model as an OData service, <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/odata-enable" target="_blank">following your instructions</a>. However, when I got to the "Calling your service" part, I got a "Request Error" instead of the proper response. I enabled debugging output, and found that it is caused by some TimeSpan properties on one of my entities, resulting in an error like the following:<br><blockquote>The property 'InTime' on type 'My.DataModel.Schedule' is not a valid property. Make sure that the type of the property is a public type and a supported primitive type or a entity type with a valid key or a complex type.<br></blockquote>Fair enough. I figured I'd hide these from the DataService using the IgnorePropertiesAttribute on my entity and expose them as something else (such as Ticks) using a calculated property. Thus I created a partial class implementation of my class, like so:<br><blockquote>&#091;IgnoreProperties( @"InTime", @"OutTime" )&#093;<br>partial class Schedule<br>{<br>&nbsp;&nbsp;&nbsp; // TODO: Implement calculated In-/OutTime properties<br>}<br></blockquote>However, when I attempt to compile this, I get this error:<br><blockquote>Duplicate 'IgnoreProperties' attribute<br></blockquote>Looking at the generated Schedule class, it already has an IgnorePropertiesAttribute, like this:<br><blockquote>&#091;IgnoreProperties(@"EntityAspect")&#093;<br>public partial class Schedule : IbEm.Entity {<br>}<br></blockquote>So, what do I do? Can I hook into the IgnoreProperties generation by just setting a property in the EDMX file, or is there some other way I have to do this?<br><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/odata-enable" target="_blank"></a>]]>
   </description>
   <pubDate>Fri, 24 Feb 2012 01:19:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3295&amp;PID=12779#12779</guid>
  </item> 
 </channel>
</rss>