<?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 : A column that should not be persisted</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : A column that should not be persisted</description>
  <pubDate>Wed, 10 Jun 2026 06:07:45 -700</pubDate>
  <lastBuildDate>Wed, 28 Jul 2010 17:51:20 -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=2019</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>A column that should not be persisted :   Originally posted by davidklitzkeA...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2019&amp;PID=7898#7898</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=718" rel="nofollow">agrogers</a><br /><strong>Subject:</strong> 2019<br /><strong>Posted:</strong> 28-Jul-2010 at 5:51pm<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by davidklitzke</strong></em><br /><br /><p><span style="font-size: 11pt; color: rgb31, 73, 125; font-family: 'Calibri','sans-serif';">A &nbsp;SourceAccessType of ReadOnly will stop DevForce from writing that property to the database on an insert or update.&nbsp; The record is still considered modified though, ...<o:p></o:p></span></p></td></tr></table><br><br>Thanks for clarifying this David.&nbsp; I am not sure that the extra work to exclude those records that are not dirty is worth our while at present.&nbsp; Will need to investigate it further.&nbsp; <br><br>Our scenario means that the Tag property of 1000s of records could be touched (and touched often) with none of those records every actually being modified.&nbsp; With SourceAccessType of the Tag column set to readonly we would be writing back to the DB 1000s of identical records ... not really what we want to do.<br><br>Is there a reason that a change to a column that is never persisted stills triggers a persist to the DB?&nbsp; That doesnt seem right to me.<br><br>Thanks<br>Andrew<br>]]>
   </description>
   <pubDate>Wed, 28 Jul 2010 17:51:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2019&amp;PID=7898#7898</guid>
  </item> 
  <item>
   <title>A column that should not be persisted :   Originally posted by smi-markWhy...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2019&amp;PID=7891#7891</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=718" rel="nofollow">agrogers</a><br /><strong>Subject:</strong> 2019<br /><strong>Posted:</strong> 28-Jul-2010 at 5:09pm<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by smi-mark</strong></em><br /><br />Why does it have to be a database column? Simply add a property to your object.<br><br>public string Tag<br>{<br>&nbsp;&nbsp;&nbsp; get;<br>&nbsp;&nbsp;&nbsp; set;<br>}<br></td></tr></table><br>I think this is the best way for us to move forward on this one.&nbsp;&nbsp; Will see how it goes.&nbsp; Thanks.<br>]]>
   </description>
   <pubDate>Wed, 28 Jul 2010 17:09:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2019&amp;PID=7891#7891</guid>
  </item> 
  <item>
   <title>A column that should not be persisted : A SourceAccessType of ReadOnly...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2019&amp;PID=7882#7882</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=23" rel="nofollow">davidklitzke</a><br /><strong>Subject:</strong> 2019<br /><strong>Posted:</strong> 28-Jul-2010 at 4:05pm<br /><br /><P =Ms&#111;normal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">A &nbsp;SourceAccessType of ReadOnly will stop DevForce from writing that property to the database on an insert or update.&nbsp; The record is still considered modified though, so when PM.SaveChanges() is called the entity will be part of the save list.&nbsp; If that’s not wanted then these entities can be stripped out of the list passed to SaveChanges, or they can be removed from the list via the PM.Saving event.<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>]]>
   </description>
   <pubDate>Wed, 28 Jul 2010 16:05:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2019&amp;PID=7882#7882</guid>
  </item> 
  <item>
   <title>A column that should not be persisted : Why does it have to be a database...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2019&amp;PID=7870#7870</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> 2019<br /><strong>Posted:</strong> 28-Jul-2010 at 2:13pm<br /><br />Why does it have to be a database column? Simply add a property to your object.<br><br>public string Tag<br>{<br>&nbsp;&nbsp;&nbsp; get;<br>&nbsp;&nbsp;&nbsp; set;<br>}<br>]]>
   </description>
   <pubDate>Wed, 28 Jul 2010 14:13:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2019&amp;PID=7870#7870</guid>
  </item> 
  <item>
   <title>A column that should not be persisted : HiWe have been looking at the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2019&amp;PID=7844#7844</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=718" rel="nofollow">agrogers</a><br /><strong>Subject:</strong> 2019<br /><strong>Posted:</strong> 27-Jul-2010 at 10:56pm<br /><br />Hi<br><br>We have been looking at the 'Source Access Type' (pg 74) property.&nbsp; We have a 'Tag' field in many tables which we use to track selected records.&nbsp; I understand the SourceAccessType property will stop modified fields from being written back to the database.&nbsp; This is exactly what we need.<br><br>However, the documentation does not state that changing this property leaves dirty state of the record unchanged.&nbsp; We dont want to write back records to the DB that have simply had their Tag property changed.&nbsp; I would guess that it would not since we are not writing the property back.&nbsp; But I just wanted to confirm that.<br><br>Thanks<br>Andrew<br>]]>
   </description>
   <pubDate>Tue, 27 Jul 2010 22:56:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2019&amp;PID=7844#7844</guid>
  </item> 
 </channel>
</rss>