<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - ASP.NET ObjectDataSource caching</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - ASP.NET ObjectDataSource caching</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Tue, 21 May 2013 08:04:31 GMT</pubDate>
	<lastBuildDate>Tue, 21 May 2013 08:04:31 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>2</c9:totalResults>
	<c9:pageCount>-2</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - ASP.NET ObjectDataSource caching</title>
		<description><![CDATA[<p>So I'd love to move to using the built-in data caching of the ObjectDataSource, but I'm hitting a snag.</p><p>If I use basic types for my session parameter, changing the value triggers a cache refresh.</p><p>Session[&quot;myValue&quot;] = 5; //data loaded from the database</p><p>Session[&quot;myValue&quot;] = 15; //data loaded from the database</p><p>&nbsp;</p><p>If I use custom types for my session parameter, changing the value does not trigger a cache refresh.</p><p>Session[&quot;myValue&quot;] = new MyCustomObject(5); //data loaded from the database</p><p>Session[&quot;myValue&quot;] = new MyCustomObject(10); //data loaded from the cache</p><p>&nbsp;</p><p>I've overridden my Equals method to always return false, yet the data still loads from the cache every time.</p><p>Any ideas?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/ASPNET-ObjectDataSource-caching/88e37b24ee384fa1ab1aa029011b89cd#88e37b24ee384fa1ab1aa029011b89cd</link>
		<pubDate>Wed, 04 Apr 2012 17:12:19 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/ASPNET-ObjectDataSource-caching/88e37b24ee384fa1ab1aa029011b89cd#88e37b24ee384fa1ab1aa029011b89cd</guid>
		<dc:creator>Scott</dc:creator>
		<slash:comments>2</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/spivonious/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - ASP.NET ObjectDataSource caching</title>
		<description><![CDATA[<p>Further weirdness:</p><p>If I override the ToString method in my custom class, and have it return the parameter, then the cache is used properly.</p><p>This works:</p><p><pre class="brush: vb">&lt;Serializable()&gt; _
Public Class MyType
    Public Property Value As String

    Public Sub New(value As String)
        Me.Value = value
    End Sub

    Public Overrides Function ToString() As String
        Return Me.Value
    End Function
End Class</pre></p><p>This doesn't:</p><p><pre class="brush: vb">&lt;Serializable()&gt; _
Public Class MyType
    Public Property Value As String

    Public Sub New(value As String)
        Me.Value = value
    End Sub
End Class</pre></p><p>Shouldn't ObjectDataSource be using the Object.Equals() method to determine if the select parameter is different, and not the string representation?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/ASPNET-ObjectDataSource-caching/6903466063c640d1a0e4a02901544cc5#6903466063c640d1a0e4a02901544cc5</link>
		<pubDate>Wed, 04 Apr 2012 20:38:59 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/ASPNET-ObjectDataSource-caching/6903466063c640d1a0e4a02901544cc5#6903466063c640d1a0e4a02901544cc5</guid>
		<dc:creator>Scott</dc:creator>
		<slash:comments>2</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/spivonious/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>