<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Readonly Entity Framework Issue</title>
	<atom:link href="http://codescrub.com/readonly-entity-framework-issue/feed" rel="self" type="application/rss+xml" />
	<link>http://codescrub.com/readonly-entity-framework-issue</link>
	<description>Architecting agile web applications, and writing clean, elegant, reusable code</description>
	<lastBuildDate>Wed, 16 Dec 2009 19:24:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Yaheya Quazi</title>
		<link>http://codescrub.com/readonly-entity-framework-issue/comment-page-1#comment-227</link>
		<dc:creator>Yaheya Quazi</dc:creator>
		<pubDate>Wed, 24 Jun 2009 19:00:14 +0000</pubDate>
		<guid isPermaLink="false">http://codescrub.com/?p=508#comment-227</guid>
		<description>It does not take consideration of the delete action in the table. Here is a work around that will take care of the delete action - 
Create an additional page template (let&#039;s say ReadOnly.aspx) based on List.aspx that doesn&#039;t have any of edit/insert/delete functionalities and create an additional route like the following:

routes.Add(new DynamicDataRoute(\Employees/{action}.aspx\)
        {
          Action=\List\,
          ViewName= \ReadOnly\,
          Table = \Employees\,
          Model = model
        });</description>
		<content:encoded><![CDATA[<p>It does not take consideration of the delete action in the table. Here is a work around that will take care of the delete action &#8211;<br />
Create an additional page template (let&#8217;s say ReadOnly.aspx) based on List.aspx that doesn&#8217;t have any of edit/insert/delete functionalities and create an additional route like the following:</p>
<p>routes.Add(new DynamicDataRoute(\Employees/{action}.aspx\)<br />
        {<br />
          Action=\List\,<br />
          ViewName= \ReadOnly\,<br />
          Table = \Employees\,<br />
          Model = model<br />
        });</p>
]]></content:encoded>
	</item>
</channel>
</rss>
