<?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 : DB First Metadata for custom property</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : DB First Metadata for custom property</description>
  <pubDate>Wed, 15 Apr 2026 06:02:06 -700</pubDate>
  <lastBuildDate>Mon, 10 Dec 2012 15:53:42 -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=3849</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>DB First Metadata for custom property :   You can add a DataEntityProperty...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3849&amp;PID=15382#15382</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 3849<br /><strong>Posted:</strong> 10-Dec-2012 at 3:53pm<br /><br />You can add a DataEntityProperty for these "non-native" properties.<div>&nbsp;</div><div>It looks like we don't have this documented, but you can "extend" the PropertyMetadata partial class for the entity to add the static DataEntityProperty field.&nbsp; Something like this:</div><div>&nbsp;</div><div>public partial class Customer {</div><div>&nbsp; public string ACustomProp { get; set; }<br>&nbsp; <br>&nbsp; public partial class PropertyMetadata {</div><div><br>&nbsp;&nbsp;&nbsp; public static readonly DataEntityProperty&lt;Customer, string&gt; ACustomProp&nbsp; =<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new DataEntityProperty&lt;Customer, string&gt;(propert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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; relatedNavigationPropertyName: null,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>isNativeProperty: false</strong>);<br>&nbsp; }<br>}</div><div>&nbsp;</div><div>DevForce will discover the property definitions when the model is accessed.&nbsp; You can then obtain property metadata from the EntityMetdataStore.</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Mon, 10 Dec 2012 15:53:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3849&amp;PID=15382#15382</guid>
  </item> 
  <item>
   <title>DB First Metadata for custom property : How do I get metadata generated...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3849&amp;PID=15375#15375</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=253" rel="nofollow">pglaspey</a><br /><strong>Subject:</strong> 3849<br /><strong>Posted:</strong> 10-Dec-2012 at 10:54am<br /><br />How do I get metadata generated for a custom property that only exists in the partial class file.<div><br></div><div>If I attribute it directly or add it to the helper class it does not work.</div><div><br></div><div>Is this possible?</div>]]>
   </description>
   <pubDate>Mon, 10 Dec 2012 10:54:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3849&amp;PID=15375#15375</guid>
  </item> 
 </channel>
</rss>