<?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 : DevForce EF and asp.net (No Silverlight!)</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : DevForce EF and asp.net (No Silverlight!)</description>
  <pubDate>Wed, 13 May 2026 21:38:39 -700</pubDate>
  <lastBuildDate>Tue, 16 Aug 2011 17:08:24 -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=2739</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>DevForce EF and asp.net (No Silverlight!) : Lars,Yes, DevForce works just...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2739&amp;PID=11444#11444</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 2739<br /><strong>Posted:</strong> 16-Aug-2011 at 5:08pm<br /><br /><span ="Apple-style-span" style="font-family: 'Times New Roman'; line-height: normal; font-size: medium; "><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; ">Lars,</div><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; "><br></div><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; ">Yes, DevForce works just fine with both WebForms (MVP style) as well as ASP.NET MVC. The key decision you have to make is whether to put the EntityManager in session or create a new one for each request. If you are keeping track of user state across pages, then putting it in session can save you a bit of bookkeeping work, because the EntityManager cache holds the state of all the potentially modified business objects for the workflow.</div><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; "><br></div><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; ">We have a beta of Code First (EF 4.1) right now, with full support coming in the next release (6.1.3). You can learn more here and watch some videos:</div><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; "><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/code-first" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/code-first</a></div><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; "><br></div><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; ">You also mentioned multiple database servers, which is not a problem for DevForce. You can either use one EntityManager per model, or you can use a single EntityManager with multiple models which also allows them to participate in the same transaction.</div><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; "><br></div></span>]]>
   </description>
   <pubDate>Tue, 16 Aug 2011 17:08:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2739&amp;PID=11444#11444</guid>
  </item> 
  <item>
   <title>DevForce EF and asp.net (No Silverlight!) : Hi Dennis,Thanks for answering...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2739&amp;PID=11441#11441</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1172" rel="nofollow">Dutchboy</a><br /><strong>Subject:</strong> 2739<br /><strong>Posted:</strong> 15-Aug-2011 at 3:46pm<br /><br />Hi Dennis,<br><br>Thanks for answering - even though I might not like the message :-)<br><br>It tells me you're serious... Can you tell me if it is possible with webforms (MVP) - not the "how", but the "if".<br><br>The thing that I am looking for is flexibility... multiple data sources (DB servers)... a caching layer... etc...<br><br>About EF (4.1) - and yes, it comes from MS and thus it is being hyped - it does have "everyone" blogging about it, which helps a lot (or not, but being informed one notices instantly the info is bogus or not)<br><br>Devforce has been around for some time - I know - but is it worth the investment (in time and in money) - I know it is hard to tell...<br><br>In short, I'm in the process of choosing which technology to use for a new system...<br><br>Thanks for reading,<br><br>Lars<br>]]>
   </description>
   <pubDate>Mon, 15 Aug 2011 15:46:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2739&amp;PID=11441#11441</guid>
  </item> 
  <item>
   <title>DevForce EF and asp.net (No Silverlight!) : Hi Lars,With all the recent interest...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2739&amp;PID=11440#11440</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 2739<br /><strong>Posted:</strong> 15-Aug-2011 at 3:28pm<br /><br />Hi Lars,<div><br></div><div>With all the recent interest in HTML 5,we are focusing much of our efforts there, so I don't know when we might go back and create a WebForms sample. Sorry, I know that's not much help.</div><div><br></div><div>In case you're interested in an HTML/JavaScript client we just published these:</div><div>BigShelf with RIA/JS -&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/code-sample-ria-js" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-ria-js</a></div><div>OData.JS -&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/code-sample-odata-js" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/code-sample-odata-js</a></div><div><br></div>]]>
   </description>
   <pubDate>Mon, 15 Aug 2011 15:28:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2739&amp;PID=11440#11440</guid>
  </item> 
  <item>
   <title>DevForce EF and asp.net (No Silverlight!) : Hi DenisK,You&amp;#039;ve replied...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2739&amp;PID=11426#11426</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1172" rel="nofollow">Dutchboy</a><br /><strong>Subject:</strong> 2739<br /><strong>Posted:</strong> 14-Aug-2011 at 1:07am<br /><br />Hi DenisK,<br><br>You've replied 30th of June - some time ago - can you tell me if / where there is a sample of the Devforce approach how to interact with asp.net?<br><br>Thanks, Lars<br>]]>
   </description>
   <pubDate>Sun, 14 Aug 2011 01:07:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2739&amp;PID=11426#11426</guid>
  </item> 
  <item>
   <title>DevForce EF and asp.net (No Silverlight!) : Hi Dutchboy;Our EntityManager...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2739&amp;PID=10892#10892</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> 2739<br /><strong>Posted:</strong> 03-Jun-2011 at 12:22pm<br /><br />Hi Dutchboy;<div><br></div><div>Our EntityManager does not implement IDisposable but when the EM goes out of scope, it will be disposed and nothing is holding a reference once the query has executed and the page request completes.</div><div><br></div><div>We're still working on a usable sample for ASP.NET but DevForce does work with it. Here's another post that had the same discussion.&nbsp;<a href="http://www.ideablade.com/forum/forum_posts.asp?TID=2645&amp;KW=ASP%2ENET&amp;PID=10589&amp;title=aspnet#10589" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=2645&amp;KW=ASP%2ENET&amp;PID=10589&amp;title=aspnet#10589</a></div><div><br></div><div>Regarding Memcached, Unfortunately, I don't have an answer to your question since DevForce doesn't directly interact with it.</div>]]>
   </description>
   <pubDate>Fri, 03 Jun 2011 12:22:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2739&amp;PID=10892#10892</guid>
  </item> 
  <item>
   <title>DevForce EF and asp.net (No Silverlight!) : Hi,  I&amp;#039;m setting up an...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2739&amp;PID=10882#10882</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1172" rel="nofollow">Dutchboy</a><br /><strong>Subject:</strong> 2739<br /><strong>Posted:</strong> 02-Jun-2011 at 12:16am<br /><br />Hi,<br><br>I'm setting up an asp.net system - Webforms MVP, Memcached, XMPP and other nice gadgets...<br><br>Thing is.... I'm used to Entity Framework (EF)... I've even tried horribly to get Telerik Open Access (OA) working - and ORM that does not do what it should....<br><br>Both EF and OA follow a pattern that makes sense with the "web" - State Less - every time a user clicks or "moves" or interacts, it is in fact a complete new action. A new action, as in the system disconnects completely...<br><br>"Disconnecting completely" is the very nature of the "web". After each (page/http)request, a user might go to another site...<br><br>So, the pattern I learned is to put all datacode with "using" statements...<br><br><pre style="font-family: c&#111;nsolas">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue">public</span>&nbsp;<span style="color: #2b91af">Account</span>&nbsp;GetAccountByID(<span style="color: blue">int</span>&nbsp;AccountID)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #2b91af">Account</span>&nbsp;account&nbsp;=&nbsp;<span style="color: blue">null</span>;<br> <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue">using</span>&nbsp;(<span style="color: #2b91af">DataContext</span>&nbsp;dc&nbsp;=&nbsp;conn.GetContext())<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;account&nbsp;=&nbsp;(<span style="color: blue">from</span>&nbsp;a&nbsp;<span style="color: blue">in</span>&nbsp;dc.Accounts<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;<span style="color: blue">where</span>&nbsp;a.AccountID&nbsp;==&nbsp;AccountID<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;<span style="color: blue">select</span>&nbsp;a).FirstOrDefault();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: blue">return</span>&nbsp;account;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br><br><br><br></pre>The above using statement takes care of disposing the ObjectContext (EF). Per request.<br><br>My question is - how does DevForce handle disposing? <br><br>From the info I've read, the (DevForce) EntityManager is the equivalent for the (EF) ObjectContext - am I correct?<br><br>I've tried a using statement with EntityManager, but the Dispose() is not implemented (not derived from IDisposable) so that doesn't work.... Any suggestions?<br><br>I've searched thoroughly through the documentation, but I could not find any sampling for asp.net - only Silverlight/WPF - does that mean DevForce doesn't like asp.net?<br><br>How do you connect with memcached?<br><br>Thanks for answering all my questions!<br><br>Regards! <br>]]>
   </description>
   <pubDate>Thu, 02 Jun 2011 00:16:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2739&amp;PID=10882#10882</guid>
  </item> 
 </channel>
</rss>