<?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 : Code First Base Class</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Code First Base Class</description>
  <pubDate>Wed, 13 May 2026 02:58:54 -700</pubDate>
  <lastBuildDate>Mon, 27 Aug 2012 23:13:56 -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=3590</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>Code First Base Class : Hi Silvio,I found the culprit....</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3590&amp;PID=14283#14283</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> 3590<br /><strong>Posted:</strong> 27-Aug-2012 at 11:13pm<br /><br />Hi Silvio,<div><br></div><div>I found the culprit. :)</div><div>I forgot to include the Base Class Assembly into my Search Composition List.&nbsp;</div><div><br></div><div>Thanks,</div><div>Von</div>]]>
   </description>
   <pubDate>Mon, 27 Aug 2012 23:13:56 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3590&amp;PID=14283#14283</guid>
  </item> 
  <item>
   <title>Code First Base Class :   Von,Please provide a reproducible...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3590&amp;PID=14272#14272</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> 3590<br /><strong>Posted:</strong> 23-Aug-2012 at 10:38pm<br /><br />Von,<div>&nbsp;</div><div>Please provide a reproducible test case.</div><div>&nbsp;</div><div>Silvio.</div>]]>
   </description>
   <pubDate>Thu, 23 Aug 2012 22:38:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3590&amp;PID=14272#14272</guid>
  </item> 
  <item>
   <title>Code First Base Class : When you have the base class in...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3590&amp;PID=14269#14269</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> 3590<br /><strong>Posted:</strong> 23-Aug-2012 at 5:02pm<br /><br /><span style=": rgb251, 251, 253; ">When you have the base class in the same assembly,&nbsp;does it work?</span><div><span style=": rgb251, 251, 253; ">- Yes it worked</span></div><div><span style=": rgb251, 251, 253; ">- The weird thing here is that, I just transferred the base class to a different assembly and now it doesn't work.</span></div><div><span style=": rgb251, 251, 253; "><br></span></div><div><span style=": rgb251, 251, 253; ">When you build, is the .ibmmx file generated?</span></div><div><span style=": rgb251, 251, 253; ">- Yes, in the Model project not in the BaseClass project</span></div><div><span style=": rgb251, 251, 253; "><br></span></div><div><span style=": rgb251, 251, 253; "><br></span></div>]]>
   </description>
   <pubDate>Thu, 23 Aug 2012 17:02:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3590&amp;PID=14269#14269</guid>
  </item> 
  <item>
   <title>Code First Base Class :     Von,A Code First model...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3590&amp;PID=14268#14268</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> 3590<br /><strong>Posted:</strong> 23-Aug-2012 at 4:55pm<br /><br />Von,<div>&nbsp;</div><div>A Code First model without a DbContext worked as well. (see sample: <a href="uploads/892/Silverlight_CodeFirstTourOfDevForce_BaseClassInDifferentAssembly.zip" target="_blank">uploads/892/Silverlight_CodeFirstTourOfDevForce_BaseClassInDifferentAssembly.zip</a>)</div><div>&nbsp;</div><div>When you have the base class in the same assembly,&nbsp;does it work?</div><div>When you build, is the .ibmmx file generated?</div><div>&nbsp;</div><div>Note that Code Second might not produce a 100% working code and you might have to make little changes to it.</div><div>&nbsp;</div><div>Silvio.</div><span style="font-size:10px"><br /><br />Edited by sbelini - 23-Aug-2012 at 4:56pm</span>]]>
   </description>
   <pubDate>Thu, 23 Aug 2012 16:55:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3590&amp;PID=14268#14268</guid>
  </item> 
  <item>
   <title>Code First Base Class : Hi Silvio,I&amp;#039;m not sure if...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3590&amp;PID=14267#14267</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> 3590<br /><strong>Posted:</strong> 23-Aug-2012 at 4:25pm<br /><br />Hi Silvio,<div><br></div><div>I'm not sure if this is related but I don't have a custom DBContext, I only use EntityManager and I'm in an n-Tier environment so I have a BOS here.</div><div><br></div><div>Thanks,</div><div>Von</div>]]>
   </description>
   <pubDate>Thu, 23 Aug 2012 16:25:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3590&amp;PID=14267#14267</guid>
  </item> 
  <item>
   <title>Code First Base Class :    Von,I was not able to reproduce...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3590&amp;PID=14262#14262</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> 3590<br /><strong>Posted:</strong> 23-Aug-2012 at 1:29pm<br /><br />Von,<div>&nbsp;</div><div>I was not able to reproduce it here.</div><div>I'm sending the CodeFirstWalk sample modified so the base class is in a different assembly.</div><div><a href="uploads/892/CodeFirstWalk_BaseClass_in_separate_assembly.zip" target="_blank">uploads/892/CodeFirstWalk_BaseClass_in_separate_assembly.zip</a></div><div>&nbsp;</div><div>Regards,</div><div>&nbsp;&nbsp; Silvio.</div>]]>
   </description>
   <pubDate>Thu, 23 Aug 2012 13:29:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3590&amp;PID=14262#14262</guid>
  </item> 
  <item>
   <title>Code First Base Class : HiI created a base class for all...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3590&amp;PID=14254#14254</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> 3590<br /><strong>Posted:</strong> 22-Aug-2012 at 1:16am<br /><br /><div>Hi</div><div><br></div>I created a base class for all my Code First Entities and I put the base class in a separate project or assembly.<div>Now, using Code Second Approach, I enter the inject base class like 'OtherProject.EntityBase' and it generates all the codes and I was able to compile the whole project.</div><div>When I try to execute the query like:</div><div><br></div><div>var context = new DomainEntities(some parameters here);</div><div>var result = context.Sample.ToList();</div><div><br></div><div>This error will show:</div><div><br></div><div>Unable to get metadata for&nbsp;OtherProject.EntityBase&nbsp;. Make sure it is a valid entity type or POCO type with a KeyAttribute</div><div><br></div><div>Am I missing something?</div><div><br></div><div>Do i need to have a metadata (ibmmx) or something before it work?</div><div><br></div><div>Thanks,</div><div>Von</div>]]>
   </description>
   <pubDate>Wed, 22 Aug 2012 01:16:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3590&amp;PID=14254#14254</guid>
  </item> 
 </channel>
</rss>