<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tim&#039;s CodeLab Blog</title>
	<atom:link href="http://blog.codelab.co.nz/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.codelab.co.nz</link>
	<description>Anything to do with Software...mostly</description>
	<lastBuildDate>Fri, 03 Sep 2010 04:03:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Determing SQL Server Table Size</title>
		<link>http://blog.codelab.co.nz/2010/09/03/determing-sql-server-table-size/</link>
		<comments>http://blog.codelab.co.nz/2010/09/03/determing-sql-server-table-size/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 04:03:52 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://blog.codelab.co.nz/?p=298</guid>
		<description><![CDATA[This is a bit of code I found that determines the size used by each table in your database. Make sure you run DBCC UPDATEUSAGE first to correct any incorrect stats (pages etc) on your tables. DBCC UPDATEUSAGE (YOUR DATABASE NAME) DECLARE @TableName VARCHAR(100) &#160; &#160;--For storing values in the cursor --Cursor to get the [...]]]></description>
			<content:encoded><![CDATA[<p>This is a bit of code I found that determines the size used by each table in your database.</p>
<p>Make sure you run DBCC UPDATEUSAGE first to correct any incorrect stats (pages etc) on your tables.</p>
<p>DBCC UPDATEUSAGE (YOUR DATABASE NAME)</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">DECLARE @TableName VARCHAR(100) &nbsp; &nbsp;--For storing values in the cursor<br />
<br />
--Cursor to get the name of all user tables from the sysobjects listing<br />
DECLARE tableCursor CURSOR<br />
FOR<br />
select [name]<br />
from dbo.sysobjects<br />
where &nbsp;OBJECTPROPERTY(id, N'IsUserTable') = 1<br />
FOR READ ONLY<br />
<br />
CREATE TABLE #TempTable<br />
(<br />
tableName varchar(100),<br />
numberofRows varchar(100),<br />
reservedSize varchar(50),<br />
dataSize varchar(50),<br />
indexSize varchar(50),<br />
unusedSize varchar(50)<br />
)<br />
<br />
OPEN tableCursor<br />
FETCH NEXT FROM tableCursor INTO @TableName<br />
<br />
WHILE (@@Fetch_Status &amp;gt;= 0)<br />
BEGIN<br />
INSERT &nbsp;#TempTable<br />
EXEC sp_spaceused @TableName<br />
FETCH NEXT FROM tableCursor INTO @TableName<br />
END<br />
<br />
CLOSE tableCursor<br />
DEALLOCATE tableCursor<br />
<br />
--Select all records so we can use the reults, ordered by biggest<br />
SELECT *<br />
FROM #TempTable<br />
ORDER BY CAST(LEFT(dataSize,LEN(dataSize)-3) AS NUMERIC(18,0)) DESC<br />
<br />
DROP TABLE #TempTable</div></div>
<p><em><strong>References:</strong></em></p>
<p><a href="http://www.mitchelsellers.com/blogs/articletype/articleview/articleid/121/determing-sql-server-table-size.aspx">http://www.mitchelsellers.com/blogs/articletype/articleview/articleid/121/determing-sql-server-table-size.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codelab.co.nz/2010/09/03/determing-sql-server-table-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>You receive a &#8220;The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect&#8221; exception when using NVarchar parameters with Sqlclient</title>
		<link>http://blog.codelab.co.nz/2010/08/26/you-receive-a-the-incoming-tabular-data-stream-tds-remote-procedure-call-rpc-protocol-stream-is-incorrect-exception-when-using-nvarchar-parameters-with-sqlclient/</link>
		<comments>http://blog.codelab.co.nz/2010/08/26/you-receive-a-the-incoming-tabular-data-stream-tds-remote-procedure-call-rpc-protocol-stream-is-incorrect-exception-when-using-nvarchar-parameters-with-sqlclient/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 00:02:33 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[.NET Framework]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://blog.codelab.co.nz/?p=292</guid>
		<description><![CDATA[The problem I got the following random error: You receive a &#8220;The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect&#8221; exception when using NVarchar parameters with Sqlclient The Solution Its a known bug with the .Net SqlClient Data Provider.   If you have a field in the database of type nvarchar(max) [...]]]></description>
			<content:encoded><![CDATA[<p>The problem</p>
<p>I got the following random error:<br />
</p>
<blockquote><p>You receive a &#8220;The incoming tabular data stream (TDS)  remote procedure call (RPC) protocol stream is incorrect&#8221; exception when  using NVarchar parameters with Sqlclient</p></blockquote>
<p>
The Solution</p>
<p>Its a known bug with the .Net SqlClient Data Provider.   If you have a field in the database of type nvarchar(max) or greater than 4000 characters and if the user enters data into the field greater than 4000 characters via the .Net SqlClient Data Provider you will receive an exception.</p>
<p>To get around this, reduce the field size to less that 4000 characters or change your type to ntext or set the Sqlparamter.size property to -1 to allow the entire data to be saved.</p>
<p><em><strong>References</strong></em></p>
<p><em><strong><br />
</strong></em><br />
<br />
<a href="http://support.microsoft.com/kb/970519">http://support.microsoft.com/kb/970519</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codelab.co.nz/2010/08/26/you-receive-a-the-incoming-tabular-data-stream-tds-remote-procedure-call-rpc-protocol-stream-is-incorrect-exception-when-using-nvarchar-parameters-with-sqlclient/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open XML &#8211; OLE Automation Date Issues</title>
		<link>http://blog.codelab.co.nz/2010/07/26/open-xml-ole-automation-date-issues/</link>
		<comments>http://blog.codelab.co.nz/2010/07/26/open-xml-ole-automation-date-issues/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 12:16:20 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[.NET Framework]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Excel]]></category>

		<guid isPermaLink="false">http://blog.codelab.co.nz/?p=290</guid>
		<description><![CDATA[If you are exporting a date from C# to Excel using 2007, you probably will use the following: Math.Round(DateTime.Now.ToOADate(), 12).ToString() This exports the date as a OLE Automation date recognized by Excel 2007. How ever, in Excel 2010 this was causing issues, every time I exported to Excel 2010, it said that it has to [...]]]></description>
			<content:encoded><![CDATA[<p>If you are exporting a date from C# to Excel using 2007, you probably will use the following:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Math.Round(DateTime.Now.ToOADate(), 12).ToString()</div></div>
<p>This exports the date as a OLE Automation date recognized by Excel 2007.   How ever, in Excel 2010 this was causing issues, every time I exported to Excel 2010, it said that it has to repair my document and it never displayed the values correctly as dates.</p>
<p>Because I was using Open XML to generate the markup, Excel 2010 has been support for Open XML.   I got around the problem of using:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">DateTime.Now.ToString(&quot;yyyy-MM-dd'T'HH:mm:ss.fffffffzzz&quot;);</div></div>
<p>This exports the date as a XML Date format.<br />
Hope this helps anyone who has the same problem!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codelab.co.nz/2010/07/26/open-xml-ole-automation-date-issues/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Photo &#8211; CheckoutChristchurch.co.nz south by the Church of Good Shepard</title>
		<link>http://blog.codelab.co.nz/2010/07/23/new-photo-checkoutchristchurch-co-nz-south-by-the-church-of-good-shepard/</link>
		<comments>http://blog.codelab.co.nz/2010/07/23/new-photo-checkoutchristchurch-co-nz-south-by-the-church-of-good-shepard/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 10:31:25 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CheckoutChristchurch]]></category>

		<guid isPermaLink="false">http://blog.codelab.co.nz/?p=287</guid>
		<description><![CDATA[CheckoutChristchurch south on Lake Tekapo by the Church of Good Shepard!]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.checkoutchristchurch.co.nz">CheckoutChristchurch</a> south on Lake Tekapo by the Church of Good Shepard!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codelab.co.nz/2010/07/23/new-photo-checkoutchristchurch-co-nz-south-by-the-church-of-good-shepard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PRODUCT OF THE WEEK &#8211; CAR FIRST AID KIT</title>
		<link>http://blog.codelab.co.nz/2010/07/22/product-of-the-week-car-first-aid-kit/</link>
		<comments>http://blog.codelab.co.nz/2010/07/22/product-of-the-week-car-first-aid-kit/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 02:05:34 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.codelab.co.nz/?p=284</guid>
		<description><![CDATA[PRODUCT OF THE WEEK: Car First Aid Kit &#8211; Perfect kit for the car for any unexpected accidents on the road! Includes plasters, saline, CPR mask plus more..perfect if you are traveling up the snow this winter! http://www.medicsafe.co.nz/car-fa-kit-soft-pack]]></description>
			<content:encoded><![CDATA[<h3>PRODUCT  OF THE WEEK: Car First Aid Kit &#8211; Perfect kit for the car for any  unexpected accidents on the road! Includes plasters, saline, CPR mask  plus more..perfect if you are traveling up the snow this winter!</h3>
<p><a href="http://www.medicsafe.co.nz/car-fa-kit-soft-pack">http://www.medicsafe.co.nz/car-fa-kit-soft-pack</a><a href="http://www.medicsafe.co.nz/car-fa-kit-soft-pack"><img class="alignnone" title="Car First Aid Kit" src="http://www.medicsafe.co.nz/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/J/1/J186.jpg" alt="" width="271" height="480" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codelab.co.nz/2010/07/22/product-of-the-week-car-first-aid-kit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Auckland 2011 Website Hickups!</title>
		<link>http://blog.codelab.co.nz/2010/07/14/auckland-2011-website-hickups/</link>
		<comments>http://blog.codelab.co.nz/2010/07/14/auckland-2011-website-hickups/#comments</comments>
		<pubDate>Wed, 14 Jul 2010 04:48:35 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://blog.codelab.co.nz/?p=278</guid>
		<description><![CDATA[Auckland 2011 Website isn&#8217;t too bad but it has a few design flaws! Can you spot them? This appears across all browsers, look closely where the Visitor Services text is.]]></description>
			<content:encoded><![CDATA[<p>Auckland 2011 Website isn&#8217;t too bad but it has a few design flaws! Can you spot them? This appears across all browsers, look closely where the Visitor Services text is.</p>
<p><a href="http://blog.codelab.co.nz/wp-content/uploads/2010/07/CaptureAuckland20111.jpg"><img class="alignnone size-full wp-image-280" title="Auckland2011.com" src="http://blog.codelab.co.nz/wp-content/uploads/2010/07/CaptureAuckland20111.jpg" alt="" width="590" height="522" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codelab.co.nz/2010/07/14/auckland-2011-website-hickups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EF Strongly Typed ObjectQuery.Include</title>
		<link>http://blog.codelab.co.nz/2010/07/13/ef-strongly-typed-objectquery-include/</link>
		<comments>http://blog.codelab.co.nz/2010/07/13/ef-strongly-typed-objectquery-include/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 20:37:58 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[.NET Framework]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[ADO.NET]]></category>

		<guid isPermaLink="false">http://blog.codelab.co.nz/?p=274</guid>
		<description><![CDATA[The problem that I faced was having to put up with &#8220;hard coded&#8221; strings in the ObjectQuery.Include function to load related objects through POCO objects in the Entity Framework. This faced challenges when I renamed columns in the Model which caused a run-time error when recompiling and re-starting the application. Thanks to David Kiff, we [...]]]></description>
			<content:encoded><![CDATA[<p>The problem that I faced was having to put up with &#8220;hard coded&#8221; strings in the ObjectQuery.Include function to load related objects through POCO objects in the Entity Framework.   This faced challenges when I renamed columns in the Model which caused a run-time error when recompiling and re-starting the application.   Thanks to <a href="http://davidkiff.co.uk/author/David+Kiff.aspx">David Kiff</a>, we can now change the code from being strings:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">using (CommuicationsEntities entities = new CommuicationsEntities())<br />
{<br />
entities.Order.Include(&quot;OrderDetails&quot;);<br />
}</div></div>
<p>To a nice strongly typed includes using a IncludeBuilder class.</p>
<div>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">public class IncludeBuilder<br />
{<br />
private readonly List _propertiesToInclude;<br />
<br />
public IncludeBuilder()<br />
{<br />
_propertiesToInclude = new List();<br />
}<br />
<br />
public void Add(Expression&lt;Func&lt;T, object&gt;&gt; propertySelector)<br />
{<br />
MemberExpression memberExpression = propertySelector.Body as MemberExpression;<br />
if (memberExpression == null)<br />
throw new ArgumentException(&quot;Parameter propertySelector must be a MemberExpression&quot;);<br />
_propertiesToInclude.Add(memberExpression.Member.Name);<br />
}<br />
<br />
public ObjectQuery Includes(ObjectQuery query)<br />
{<br />
foreach (string include in _propertiesToInclude)<br />
{<br />
query = query.Include(include);<br />
}<br />
return query;<br />
}<br />
}</div></div>
<p>the following code calls the include builder, includes the relationship and gets a simple list with no tracking on the POCO objects.</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">IncludeBuilder _include = new IncludeBuilder();<br />
_include.Add(a =&gt; a.Orders);<br />
ObjectQuery customers= DataContext.Servers;<br />
return _include.Includes(customers).Execute(MergeOption.NoTracking).ToList();</div></div>
<p><em><strong>References:</strong></em></p>
<p><a href="http://davidkiff.co.uk/post/2009/08/27/EF-Strongly-Typed-ObjectQuery3cT3eInclude%28e2809ce2809d%293b.aspx">http://davidkiff.co.uk/post/2009/08/27/EF-Strongly-Typed-ObjectQuery3cT3eInclude%28e2809ce2809d%293b.aspx</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.codelab.co.nz/2010/07/13/ef-strongly-typed-objectquery-include/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing the EF Tracing and Caching Provider Wrapper Issue</title>
		<link>http://blog.codelab.co.nz/2010/07/09/fixing-ef-tracing-caching-wrapper-issue/</link>
		<comments>http://blog.codelab.co.nz/2010/07/09/fixing-ef-tracing-caching-wrapper-issue/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 04:20:59 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[.NET Framework]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[.NET]]></category>

		<guid isPermaLink="false">http://blog.codelab.co.nz/?p=268</guid>
		<description><![CDATA[If you have been using the Tracing and Caching Provider Wrappers for the ADO.NET Entity Framework 4.0, you might of come across this error message when creating POCO objects, adding them to a Data Context and commiting them to the database using the Caching Wrapper: [NotImplementedException: The method or operation is not implemented.] EFCachingProvider.EFCachingDataReaderCacheWriter.GetName(Int32 ordinal) [...]]]></description>
			<content:encoded><![CDATA[<p>If you have been using the <a href="http://code.msdn.microsoft.com/EFProviderWrappers">Tracing and Caching Provider Wrappers for the ADO.NET Entity Framework 4.0</a>, you might of come across this error message when creating POCO objects, adding them to a Data Context and commiting them to the database using the Caching Wrapper:<span style="font-family: Arial,Helvetica,Geneva,SunSans-Regular,sans-serif;"><br />
</span></p>
<pre>[NotImplementedException: The method or operation is not implemented.]
   EFCachingProvider.EFCachingDataReaderCacheWriter.GetName(Int32 ordinal) in EFCachingProvider\EFCachingDataReaderCacheWriter.cs:109
   System.Data.Mapping.Update.Internal.DynamicUpdateCommand.Execute(UpdateTranslator translator, EntityConnection connection, Dictionary`2 identifierValues, List`1 generatedValues) +8118458
   System.Data.Mapping.Update.Internal.UpdateTranslator.Update(IEntityStateManager stateManager, IEntityAdapter adapter) +267
</pre>
<p><span style="font-family: Arial,Helvetica,Geneva,SunSans-Regular,sans-serif;"> </span></p>
<pre>Line 107:        public override string GetName(int ordinal)
Line 108:        {
<span style="color: red;">Line 109:            throw new NotImplementedException();
</span>Line 110:        }
Line 111:
</pre>
<p>Basically, the author&#8217;s of the code have created a wrapper for the DBDataReader class and have not implement the override methods.   This can be fixed by calling the Wrapper DataReader object methods.  This is what I have modified in the EFCachignDataReaderCacheWriter.cs file:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">using System;<br />
using System.Data;<br />
using System.Data.Common;<br />
using EFCachingProvider.Caching;<br />
<br />
namespace EFCachingProvider<br />
{<br />
///<br />
/// Implementation of the &nbsp;which reads the results of another data reader<br />
/// and stores a copy in the cache.<br />
///<br />
internal class EFCachingDataReaderCacheWriter : EFCachingDataReaderBase<br />
{<br />
private DbQueryResults queryResults = new DbQueryResults();<br />
private DbDataReader wrappedReader;<br />
private int maxRows;<br />
private Action addToCache;<br />
<br />
///<br />
/// Initializes a new instance of the EFCachingDataReaderCacheWriter class.<br />
///<br />
///<br />
&lt;span&gt; &lt;/span&gt;The wrapped reader. &nbsp; &nbsp; &nbsp; &nbsp; ///<br />
&lt;span&gt; &lt;/span&gt;The maximum number of rows which can be cached. &nbsp; &nbsp; &nbsp; &nbsp; ///<br />
The delegate used to add the result to the cache when the reader finishes. &nbsp; &nbsp; &nbsp; &nbsp; public EFCachingDataReaderCacheWriter(DbDataReader wrappedReader, int maxRows, Action addToCache)<br />
{<br />
this.wrappedReader = wrappedReader;<br />
this.addToCache = addToCache;<br />
this.maxRows = maxRows;<br />
}<br />
<br />
///<br />
/// Gets a value that indicates whether this &nbsp;contains one or more rows.<br />
///<br />
///<br />
/// true if the &nbsp;contains one or more rows; otherwise false.<br />
///<br />
public override bool HasRows<br />
{<br />
get { return this.wrappedReader.HasRows; }<br />
}<br />
<br />
///<br />
/// Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.<br />
///<br />
///<br />
///<br />
/// The number of rows changed, inserted, or deleted. -1 for SELECT statements; 0 if no rows were affected or the statement failed.<br />
///<br />
public override int RecordsAffected<br />
{<br />
//get { throw new NotImplementedException(); }<br />
get { return this.wrappedReader.RecordsAffected; }<br />
}<br />
<br />
///<br />
/// Gets a value indicating whether the &nbsp;is closed.<br />
///<br />
///<br />
/// true if the &nbsp;is closed; otherwise false.<br />
///<br />
public override bool IsClosed<br />
{<br />
//get { throw new NotImplementedException(); }<br />
get { return this.wrappedReader.IsClosed; }<br />
}<br />
<br />
///<br />
/// Gets a value indicating the depth of nesting for the current row.<br />
///<br />
///<br />
///<br />
/// The depth of nesting for the current row.<br />
///<br />
public override int Depth<br />
{<br />
//get { throw new NotImplementedException(); }<br />
get { return this.wrappedReader.Depth; }<br />
}<br />
<br />
///<br />
/// Gets name of the data type of the specified column.<br />
///<br />
///<br />
The zero-based column ordinal. &nbsp; &nbsp; &nbsp; &nbsp; ///<br />
/// A string representing the name of the data type.<br />
///<br />
public override string GetDataTypeName(int ordinal)<br />
{<br />
//throw new NotImplementedException();<br />
return this.wrappedReader.GetDataTypeName(ordinal);<br />
}<br />
<br />
///<br />
/// Gets the data type of the specified column.<br />
///<br />
///<br />
The zero-based column ordinal. &nbsp; &nbsp; &nbsp; &nbsp; /// The data type of the specified column.<br />
public override Type GetFieldType(int ordinal)<br />
{<br />
return this.wrappedReader.GetFieldType(ordinal);<br />
}<br />
<br />
///<br />
/// Gets the name of the column, given the zero-based column ordinal.<br />
///<br />
///<br />
The zero-based column ordinal. &nbsp; &nbsp; &nbsp; &nbsp; /// The name of the specified column.<br />
public override string GetName(int ordinal)<br />
{<br />
return this.wrappedReader.GetName(ordinal);<br />
}<br />
<br />
///<br />
/// Gets the column ordinal given the name of the column.<br />
///<br />
///<br />
The name of the column. &nbsp; &nbsp; &nbsp; &nbsp; /// The zero-based column ordinal.<br />
///<br />
/// The name specified is not a valid column name.<br />
///<br />
public override int GetOrdinal(string name)<br />
{<br />
return this.wrappedReader.GetOrdinal(name);<br />
}<br />
<br />
///<br />
/// Returns a &nbsp;that describes the column metadata of the .<br />
///<br />
///<br />
/// A &nbsp;that describes the column metadata.<br />
///<br />
public override DataTable GetSchemaTable()<br />
{<br />
return this.wrappedReader.GetSchemaTable();<br />
}<br />
<br />
///<br />
/// Advances the reader to the next result when reading the results of a batch of statements.<br />
///<br />
///<br />
/// true if there are more result sets; otherwise false.<br />
///<br />
public override bool NextResult()<br />
{<br />
if (this.wrappedReader.NextResult())<br />
{<br />
this.queryResults = null;<br />
return true;<br />
}<br />
else<br />
{<br />
return false;<br />
}<br />
}<br />
<br />
///<br />
/// Closes the &nbsp;object.<br />
///<br />
public override void Close()<br />
{<br />
this.wrappedReader.Close();<br />
<br />
if (this.queryResults != null)<br />
{<br />
this.addToCache(this.queryResults);<br />
}<br />
}<br />
<br />
///<br />
/// Advances the reader to the next record in a result set.<br />
///<br />
///<br />
/// true if there are more rows; otherwise false.<br />
///<br />
public override bool Read()<br />
{<br />
if (this.wrappedReader.Read())<br />
{<br />
object[] values = new object[this.wrappedReader.FieldCount];<br />
<br />
this.wrappedReader.GetValues(values);<br />
SetValues(values);<br />
if (this.queryResults != null)<br />
{<br />
this.queryResults.Rows.Add(values);<br />
if (this.queryResults.Rows.Count &amp;gt; this.maxRows)<br />
{<br />
this.queryResults = null;<br />
}<br />
}<br />
<br />
return true;<br />
}<br />
else<br />
{<br />
return false;<br />
}<br />
}<br />
}<br />
}</div></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.codelab.co.nz/2010/07/09/fixing-ef-tracing-caching-wrapper-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CheckoutChristchurch &#8211; What not to check out??</title>
		<link>http://blog.codelab.co.nz/2010/07/04/checkoutchristchurch-what-not-to-check-out/</link>
		<comments>http://blog.codelab.co.nz/2010/07/04/checkoutchristchurch-what-not-to-check-out/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 08:48:57 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[CheckoutChristchurch]]></category>

		<guid isPermaLink="false">http://blog.codelab.co.nz/?p=266</guid>
		<description><![CDATA[Here is a picture that was taken from outside Timaru..perhaps this picture has failed? www.checkoutchristchurch.co.nz]]></description>
			<content:encoded><![CDATA[<p>Here is a picture that was taken from outside Timaru..perhaps this picture has failed?</p>
<p><a href="http://www.checkoutchristchurch.co.nz">www.checkoutchristchurch.co.nz</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codelab.co.nz/2010/07/04/checkoutchristchurch-what-not-to-check-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CheckoutChristchurch has a new pic! Clock Tower</title>
		<link>http://blog.codelab.co.nz/2010/07/01/checkoutchristchurch-has-a-new-pic-clock-towe/</link>
		<comments>http://blog.codelab.co.nz/2010/07/01/checkoutchristchurch-has-a-new-pic-clock-towe/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 02:11:33 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[CheckoutChristchurch]]></category>

		<guid isPermaLink="false">http://blog.codelab.co.nz/?p=264</guid>
		<description><![CDATA[Visit http://www.checkoutchristchurch.co.nz to see the Victoria Street Clock Tower in Christchurch! www.checkoutchristchurch.co.nz is powered by jquery, flickr and a twitter feed!]]></description>
			<content:encoded><![CDATA[<p>Visit <a href="http://www.checkoutchristchurch.co.nz">http://www.checkoutchristchurch.co.nz</a> to see the Victoria Street Clock Tower in Christchurch!</p>
<p>www.checkoutchristchurch.co.nz is powered by jquery, flickr and a twitter feed!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.codelab.co.nz/2010/07/01/checkoutchristchurch-has-a-new-pic-clock-towe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
