<?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 : Read-Only Entity Model?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Read-Only Entity Model?</description>
  <pubDate>Sun, 12 Apr 2026 08:51:06 -700</pubDate>
  <lastBuildDate>Thu, 03 Nov 2011 11:43:17 -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=3079</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>Read-Only Entity Model? : Hi katit;By default, database...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3079&amp;PID=11996#11996</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> 3079<br /><strong>Posted:</strong> 03-Nov-2011 at 11:43am<br /><br />Hi katit;<div><br></div><div>By default, database views are read-only. You can make a db view updatable by following this guide.&nbsp;<a href="http://blogs.msdn.com/b/alexj/archive/2009/09/01/tip-34-how-to-work-with-updatable-views.aspx" target="_blank">http://blogs.msdn.com/b/alexj/archive/2009/09/01/tip-34-how-to-work-with-updatable-views.aspx</a></div><div><br></div><div>In DevForce, to limit access to entities, you can</div><div><br></div><div>1. Change the member visibility -&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/model-member-visibility" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/model-member-visibility</a></div><div><br></div><div>2. Add save authorization attribute -&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/model-edm-designer-properties#HEntityEDMProperties" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/model-edm-designer-properties#HEntityEDMProperties</a></div><div><br></div><div>3. Intercept the save on the server by inheriting from EntityServerSaveInterceptor class and override its AuthorizeSave method.&nbsp;<a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/save-lifecycle-server#HInterceptortemplatemethods" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/save-lifecycle-server#HInterceptortemplatemethods</a></div><div><br></div><div>Hope this helps.</div>]]>
   </description>
   <pubDate>Thu, 03 Nov 2011 11:43:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3079&amp;PID=11996#11996</guid>
  </item> 
  <item>
   <title>Read-Only Entity Model? :   I need to create another EntityManager...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3079&amp;PID=11993#11993</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1264" rel="nofollow">katit</a><br /><strong>Subject:</strong> 3079<br /><strong>Posted:</strong> 03-Nov-2011 at 8:08am<br /><br />I need to create another EntityManager for data lookups. It will be based on views from database.<div>&nbsp;</div><div>I would like to make all of those entities "read only" and as light as possible. I turned off validation and attributes. I also would like to set it so it's read-only so in code only queries can run against this manager. How do I achieve this?</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 03 Nov 2011 08:08:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3079&amp;PID=11993#11993</guid>
  </item> 
 </channel>
</rss>