<?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 : Generic Base Class for entities</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Generic Base Class for entities</description>
  <pubDate>Wed, 29 Jul 2026 07:10:26 -700</pubDate>
  <lastBuildDate>Thu, 11 Nov 2010 00:58:19 -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=2284</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>Generic Base Class for entities :  Hi sbeliniI&amp;#039;m getting the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2284&amp;PID=9072#9072</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=988" rel="nofollow">tersiusk</a><br /><strong>Subject:</strong> 2284<br /><strong>Posted:</strong> 11-Nov-2010 at 12:58am<br /><br /><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif">Hi sbelini</font></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif"><br></font></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif">I'm getting the error on the SaveChanges()</font></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif"><br></font></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif">Here is a sample solution.&nbsp;<span ="apple-style-span"="" style="font-size: 11.6667px; "><a href="uploads/988/DevforceTemplate.rar" target="_blank">uploads/988/DevforceTemplate.rar</a></span></font></div><span style="font-size:10px"><br /><br />Edited by tersiusk - 11-Nov-2010 at 1:03am</span>]]>
   </description>
   <pubDate>Thu, 11 Nov 2010 00:58:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2284&amp;PID=9072#9072</guid>
  </item> 
  <item>
   <title>Generic Base Class for entities : Hi tersiusk,  Upon what operation...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2284&amp;PID=9069#9069</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> 2284<br /><strong>Posted:</strong> 10-Nov-2010 at 4:23pm<br /><br />Hi tersiusk,<DIV>&nbsp;</DIV><DIV>Upon what operation are you getting the exception?</DIV><DIV>Are you using an injected base type? (you can do that in your model properties)</DIV><DIV>Can you upload a small sample (against northwindIB) reproducing the issue?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 10 Nov 2010 16:23:29 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2284&amp;PID=9069#9069</guid>
  </item> 
  <item>
   <title>Generic Base Class for entities : I want a generic class to do some...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2284&amp;PID=9035#9035</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=988" rel="nofollow">tersiusk</a><br /><strong>Subject:</strong> 2284<br /><strong>Posted:</strong> 08-Nov-2010 at 8:48am<br /><br />I want a generic class to do some type safe methods etc. For instance I want all my entities to have a GetAll method which need to return&nbsp;ObservableCollection&lt;T&gt;.&nbsp;]]>
   </description>
   <pubDate>Mon, 08 Nov 2010 08:48:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2284&amp;PID=9035#9035</guid>
  </item> 
  <item>
   <title>Generic Base Class for entities : Why exactly do you need a Generic...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2284&amp;PID=9034#9034</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> 2284<br /><strong>Posted:</strong> 08-Nov-2010 at 8:26am<br /><br />Why exactly do you need a Generic class?<br><br>When you have a base class EntityBase, User will inherit from EntityBase. You do not need to make it Generic<br>]]>
   </description>
   <pubDate>Mon, 08 Nov 2010 08:26:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2284&amp;PID=9034#9034</guid>
  </item> 
  <item>
   <title>Generic Base Class for entities : HiI have created a generic base...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2284&amp;PID=9031#9031</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=988" rel="nofollow">tersiusk</a><br /><strong>Subject:</strong> 2284<br /><strong>Posted:</strong> 08-Nov-2010 at 7:20am<br /><br />Hi<div><br></div><div>I have created a generic base class for my entities but I'm running into some issues with the&nbsp;serialization. I have defined the generic class as below.&nbsp;</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>public abstract class EntityBase&lt;T&gt; : EntityBase</div><div><span ="Apple-style-span" style="font-size: 11.6667px; ">{</span><span ="Apple-style-span" style="font-size: 11.6667px; ">&nbsp;&nbsp; &nbsp; &nbsp;</span></div><div>}</div></div><div></pre></td></tr></table></div><div>I'm getting&nbsp;Error:</div><div><span ="Apple-style-span" style="font-size: 11.6667px; "><table width="99%"><tr><td><pre class="BBcode"></span></div><div>while getting known types for Type 'NetstarSecurity.DevForce.Model.EntityBase`1&#091;T&#093;'. The type must not be an open or partial generic class.</div><div><span ="Apple-style-span" style="font-size: 11.6667px; "></pre></td></tr></table></span></div><div><span ="Apple-style-span" style="font-size: 11.6667px; ">Now obviously my basetype is a open generic class...</span></div><div><span ="Apple-style-span" style="font-size: 11.6667px; ">I have tried adding the &#091;KnownType(typeof(EntityBase&lt;User&gt;))&#093; attribute but it still gives the same error.&nbsp;</span></div><div><span ="Apple-style-span" style="font-size: 11.6667px; "><br></span></div><div><span ="Apple-style-span" style="font-size: 11.6667px; ">Please help. :)</span></div>]]>
   </description>
   <pubDate>Mon, 08 Nov 2010 07:20:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2284&amp;PID=9031#9031</guid>
  </item> 
 </channel>
</rss>