<?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 : Customer specific model changes (code first)</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Customer specific model changes (code first)</description>
  <pubDate>Mon, 13 Apr 2026 08:08:11 -700</pubDate>
  <lastBuildDate>Sat, 19 May 2012 14:08:11 -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=3441</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>Customer specific model changes (code first) : Very cool, thanks for sharing  ...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3441&amp;PID=13606#13606</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 3441<br /><strong>Posted:</strong> 19-May-2012 at 2:08pm<br /><br />Very cool, thanks for sharing]]>
   </description>
   <pubDate>Sat, 19 May 2012 14:08:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3441&amp;PID=13606#13606</guid>
  </item> 
  <item>
   <title>Customer specific model changes (code first) : Just if anyone else is interessted....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3441&amp;PID=13605#13605</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1400" rel="nofollow">Thomas</a><br /><strong>Subject:</strong> 3441<br /><strong>Posted:</strong> 19-May-2012 at 4:31am<br /><br />Just if anyone else is interessted. In EF you can solve the problem by using the following in the DBContext (constructor):<div><br></div><div>(this as IObjectContextAdapter).ObjectContext.MetadataWorkspace.LoadFromAssembly(typeof(&lt;entity from other assembly&gt;).Assembly);<br><div><br></div><div>The only problem is that this is currently not supported by DevForce, but according to sbelini it is logged as a feature request.</div></div>]]>
   </description>
   <pubDate>Sat, 19 May 2012 04:31:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3441&amp;PID=13605#13605</guid>
  </item> 
  <item>
   <title>Customer specific model changes (code first) : You could have a partial class...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3441&amp;PID=13601#13601</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 3441<br /><strong>Posted:</strong> 18-May-2012 at 10:49am<br /><br />You could have a partial class for each customer that needs specific changes and then use conditional compilation symbols<br><br>Entity_Customer1.cs<br>#if CUSTOMER1<br>properties here<br>#endif<br><br>Entity_Customer2.cs<br>#if CUSTOMER2<br>properties here<br>#endif<br><br>Not the cleanest but I'm not sure how else you will achieve it<br>]]>
   </description>
   <pubDate>Fri, 18 May 2012 10:49:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3441&amp;PID=13601#13601</guid>
  </item> 
  <item>
   <title>Customer specific model changes (code first) : This was also the only &amp;#034;solution&amp;#034;...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3441&amp;PID=13599#13599</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1400" rel="nofollow">Thomas</a><br /><strong>Subject:</strong> 3441<br /><strong>Posted:</strong> 17-May-2012 at 11:47pm<br /><br />This was also the only "solution" that I got to work. The problem is that by using this method I don't really know how to manage multiple customers properly.&nbsp;]]>
   </description>
   <pubDate>Thu, 17 May 2012 23:47:52 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3441&amp;PID=13599#13599</guid>
  </item> 
  <item>
   <title>Customer specific model changes (code first) :   Hi Thomas,After doing some...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3441&amp;PID=13595#13595</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 3441<br /><strong>Posted:</strong> 17-May-2012 at 4:43pm<br /><br />Hi Thomas,<div>&nbsp;</div><div>After doing some experimenting I found that unfortunately this is not possible.</div><div>&nbsp;</div><div>The issue I came accross is that it can't find the BaseEntity type in the custom assembly.</div><div>&nbsp;</div><div>A possible solution would be using partial classes. Howeve, in this case all code should be in the same assembly.</div><div>&nbsp;</div><div>Regards,</div><div>&nbsp;&nbsp; Silvio.</div>]]>
   </description>
   <pubDate>Thu, 17 May 2012 16:43:21 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3441&amp;PID=13595#13595</guid>
  </item> 
  <item>
   <title>Customer specific model changes (code first) :  I am currently working on a...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3441&amp;PID=13583#13583</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1400" rel="nofollow">Thomas</a><br /><strong>Subject:</strong> 3441<br /><strong>Posted:</strong> 16-May-2012 at 3:47am<br /><br />I am currently working on a structure for a base project which I would like to extend from for the customers.<div><br></div><div>That means if there are no changes I would have something like a core model project and a customer model project which just has empty classes that extend the base model classes, but if there is a change that is only relevant for the customer I would just do a change for the customer model project.</div><div><br></div><div>Would this work with DevForce (EF) code first?</div><div><br></div><span style="font-size:10px"><br /><br />Edited by Thomas - 16-May-2012 at 3:48am</span>]]>
   </description>
   <pubDate>Wed, 16 May 2012 03:47:49 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3441&amp;PID=13583#13583</guid>
  </item> 
 </channel>
</rss>