<?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 : Model Extension via MEF</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Model Extension via MEF</description>
  <pubDate>Mon, 13 Apr 2026 02:20:20 -700</pubDate>
  <lastBuildDate>Wed, 04 Apr 2012 12:29:53 -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=3368</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>Model Extension via MEF : Hmm, it sounds like your question...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3368&amp;PID=13227#13227</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> 3368<br /><strong>Posted:</strong> 04-Apr-2012 at 12:29pm<br /><br />Hmm, it sounds like your question is bordering on architecture and unfortunately I'm not qualified to give such advice. You might want to contact your account representative to see if you can have a discussion with a senior consultant.]]>
   </description>
   <pubDate>Wed, 04 Apr 2012 12:29:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3368&amp;PID=13227#13227</guid>
  </item> 
  <item>
   <title>Model Extension via MEF : Hi Denis,I agree that this is...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3368&amp;PID=13217#13217</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3368<br /><strong>Posted:</strong> 03-Apr-2012 at 3:57pm<br /><br />Hi Denis,<div><br></div><div>I agree that this is something weird but I'm just asking the possibility of this one.</div><div>I'll try to rephrase it, the concept is like this:</div><div><br></div><div>We as a software provider has this set of base components of our product.</div><div><br></div><div>Example:</div><div><br></div><div>1. OurCompany.DomainModel</div><div>2. OurCompany.BusinessLayer</div><div>3. OurCompany.Forms</div><div><br></div><div>Where Forms makes use of BusinessLayer w/c makes use of the DomainModel for the dataaccess. (So there will be entities on that model)</div><div>Now, we have a feature of our software called ICE (Intergrated Code Expansion) so kinda plugin or so.</div><div>We are letting our customer to override some of the Forms, BusinessLayer and database schema (this is the time &nbsp;that ORM is not yet existing) by inheriting them and calling the customized components instead of the base one (but in the perspective of the base application, it is just calling the default component)</div><div><br></div><div>The requirement of our project now is to make it ICEable, Forms and BusinessLayer has no problem and we see MEF as a way to go to do the work but our problem would be the Model. We're not giving the customer the source code of all the base components, they are just inheriting it, overriding or adding some methods, add some bindings, add some controls to the inherited form and we will call the customized one instead of the default. The problem is the Model, how can we extend the model by just inheriting it our any other Devforce approach and let BusinessLayer use the extended one rather than the default.</div><div><br></div><div>Thanks,</div><div>Von</div>]]>
   </description>
   <pubDate>Tue, 03 Apr 2012 15:57:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3368&amp;PID=13217#13217</guid>
  </item> 
  <item>
   <title>Model Extension via MEF : Sorry Von but I&amp;#039;m still lost...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3368&amp;PID=13216#13216</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> 3368<br /><strong>Posted:</strong> 03-Apr-2012 at 3:03pm<br /><br />Sorry Von but I'm still lost as to what you're trying to achieve.<div><br></div><div>You have a model with Assembly A containing EntityTypeA</div><div><br></div><div>AssemblyA</div><div>&nbsp; Namespace DomainModelA</div><div>&nbsp; &nbsp; public partial class EntityTypeA</div><div><br></div><div>Then you want another Assembly B with the exact model composition but with additional fields</div><div><br></div><div>AssemblyB</div><div>&nbsp; Namespace DomainModelB</div><div>&nbsp; &nbsp;public partial class EntityTypeA</div><div>&nbsp; &nbsp; public int ExtraProp { get; set; }</div><div><br></div><div>Unfortunately, this is not possible in .NET if this is what you're trying to achieve.&nbsp;</div>]]>
   </description>
   <pubDate>Tue, 03 Apr 2012 15:03:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3368&amp;PID=13216#13216</guid>
  </item> 
  <item>
   <title>Model Extension via MEF : Hi,No, I&amp;#039;m not pertaining...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3368&amp;PID=13199#13199</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3368<br /><strong>Posted:</strong> 02-Apr-2012 at 5:59pm<br /><br /><div>Hi,</div><div><br></div>No, I'm not pertaining to partial class.. I'm talking about different assembly here w/c holds another model and entities (with the same type that I used with the Domain Project) to which we will modify and let the Business Layer project to use the customized one..<div><br></div><div>Thanks,</div><div>Von</div>]]>
   </description>
   <pubDate>Mon, 02 Apr 2012 17:59:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3368&amp;PID=13199#13199</guid>
  </item> 
  <item>
   <title>Model Extension via MEF : Hi Vonzkie,If I understand correctly,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3368&amp;PID=13197#13197</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> 3368<br /><strong>Posted:</strong> 02-Apr-2012 at 3:50pm<br /><br />Hi Vonzkie,<div><br></div><div>If I understand correctly, it seems that you want to add a custom property to your existing Entity classes. Each Entity class generated by DevForce is a partial class. So you can extend it however you want by simply declaring another partial class of the same Entity.</div><div><br></div><div>See&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/model-partial-class-file" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/model-partial-class-file</a>&nbsp;for more details.</div>]]>
   </description>
   <pubDate>Mon, 02 Apr 2012 15:50:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3368&amp;PID=13197#13197</guid>
  </item> 
  <item>
   <title>Model Extension via MEF : Note: By not using Code First...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3368&amp;PID=13179#13179</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3368<br /><strong>Posted:</strong> 02-Apr-2012 at 1:38am<br /><br />Note: By not using Code First approach here..]]>
   </description>
   <pubDate>Mon, 02 Apr 2012 01:38:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3368&amp;PID=13179#13179</guid>
  </item> 
  <item>
   <title>Model Extension via MEF : Hi,Assuming I have a project named...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3368&amp;PID=13178#13178</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3368<br /><strong>Posted:</strong> 02-Apr-2012 at 1:36am<br /><br />Hi,<div><br></div><div>Assuming I have a project named Domain where my Model resides that has 1 Entity with a definition as follows:</div><div><br></div><div>MyEntity</div><div>- ID (int)</div><div>- MyDescription (string)</div><div>- MyOtherField (datetime)</div><div><br></div><div>I have a Business Rule Project that is accessing my Domain project.</div><div><br></div><div>What I'm trying to do is to have a "customized" Domain project that has the same Model and Entity but with additional fields such as:</div><div><br></div><div><div>MyEntity</div><div>- ID (int)</div><div>- MyDescription (string)</div><div>- MyOtherField (datetime)</div></div><div>- MyCustomOtherField (string)</div><div><br></div><div>Now what I want to accomplished is that, I don't want to rewrite my whole Business Rule project to use the customized Domain project but instead use MEF or any other technique to just simply plug and play this customization.</div><div><br></div><div>What is the best way to do it in Devforce?</div><div><br></div><div>Thanks,</div><div>Von</div><br ="Apple-interchange-newline">]]>
   </description>
   <pubDate>Mon, 02 Apr 2012 01:36:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3368&amp;PID=13178#13178</guid>
  </item> 
 </channel>
</rss>