<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Paul Sheriff's Blog for the Real World - All Comments</title><link>http://weblogs.asp.net/psheriff/default.aspx</link><description>This blog is to share my tips and tricks garnered over 25+ years in the IT industry</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Creating Collections of Entity Objects using Reflection - Paul Sheriff's Blog for the Real World</title><link>http://weblogs.asp.net/psheriff/archive/2013/03/06/creating-collections-of-entity-objects-using-reflection.aspx#9953173</link><pubDate>Wed, 06 Mar 2013 23:15:11 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9953173</guid><dc:creator>Creating Collections of Entity Objects using Reflection - Paul Sheriff's Blog for the Real World</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Creating Collections of Entity Objects using Reflection - Paul Sheriff&amp;#39;s Blog for the Real World&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9953173" width="1" height="1"&gt;</description></item><item><title>Join PDSA at DevIntersection Conference - April 8 - 11, 2013 - Paul Sheriff's Blog for the Real World</title><link>http://weblogs.asp.net/psheriff/archive/2013/03/04/join-pdsa-at-devintersection-conference-april-8-11-2013.aspx#9943834</link><pubDate>Mon, 04 Mar 2013 17:30:07 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9943834</guid><dc:creator>Join PDSA at DevIntersection Conference - April 8 - 11, 2013 - Paul Sheriff's Blog for the Real World</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Join PDSA at DevIntersection Conference - April 8 - 11, 2013 - Paul Sheriff&amp;#39;s Blog for the Real World&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9943834" width="1" height="1"&gt;</description></item><item><title>Friday Links #244 | Blue Onion Software *</title><link>http://weblogs.asp.net/psheriff/archive/2013/02/25/creating-collections-of-entity-objects-using-linq-and-field-method.aspx#9931580</link><pubDate>Fri, 01 Mar 2013 22:35:05 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9931580</guid><dc:creator>Friday Links #244 | Blue Onion Software *</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Friday Links #244 | Blue Onion Software *&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9931580" width="1" height="1"&gt;</description></item><item><title>Interesting .NET Links - February 27 , 2013 | TechBlog</title><link>http://weblogs.asp.net/psheriff/archive/2013/02/25/creating-collections-of-entity-objects-using-linq-and-field-method.aspx#9920294</link><pubDate>Wed, 27 Feb 2013 11:55:33 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9920294</guid><dc:creator>Interesting .NET Links - February 27 , 2013 | TechBlog</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Interesting .NET Links - February 27 , 2013 | TechBlog&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9920294" width="1" height="1"&gt;</description></item><item><title>re: Creating Collections of Entity Objects using LINQ and Field Method</title><link>http://weblogs.asp.net/psheriff/archive/2013/02/25/creating-collections-of-entity-objects-using-linq-and-field-method.aspx#9917377</link><pubDate>Tue, 26 Feb 2013 20:21:08 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9917377</guid><dc:creator>psheriff</dc:creator><description>&lt;p&gt;Hi MikeC,&lt;/p&gt;
&lt;p&gt;Thanks. I don't really use VB so I used a tool to convert from C# to VB. :)&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9917377" width="1" height="1"&gt;</description></item><item><title>re: Creating Collections of Entity Objects using LINQ and Field Method</title><link>http://weblogs.asp.net/psheriff/archive/2013/02/25/creating-collections-of-entity-objects-using-linq-and-field-method.aspx#9917284</link><pubDate>Tue, 26 Feb 2013 19:50:17 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9917284</guid><dc:creator>Mike C</dc:creator><description>&lt;p&gt;In the VB.NET example, you can use the .Field(Of Integer?)() notation instead of the clunkier .Field(Of Nullable(Of Integer))().&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9917284" width="1" height="1"&gt;</description></item><item><title>re: Building Collections of Entity Classes using a DataReader</title><link>http://weblogs.asp.net/psheriff/archive/2013/01/29/building-collections-of-entity-classes-using-a-datareader.aspx#9912985</link><pubDate>Mon, 25 Feb 2013 18:44:27 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9912985</guid><dc:creator>psheriff</dc:creator><description>&lt;p&gt;RichardD,&lt;/p&gt;
&lt;p&gt;No other reason than OOPs! :) I was playing around with some different scenarios.&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9912985" width="1" height="1"&gt;</description></item><item><title>re: Building Collections of Entity Classes using a DataReader</title><link>http://weblogs.asp.net/psheriff/archive/2013/01/29/building-collections-of-entity-classes-using-a-datareader.aspx#9912942</link><pubDate>Mon, 25 Feb 2013 18:30:26 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9912942</guid><dc:creator>RichardD</dc:creator><description>&lt;p&gt;Why have you defined the second argument of your &amp;quot;ConvertTo&amp;quot; method as &amp;quot;object&amp;quot; instead of &amp;quot;T&amp;quot;? If you use the generic parameter, you won&amp;#39;t need the cast in the DBNull path, and the compiler should be able to infer the correct type in most cases:&lt;/p&gt;
&lt;p&gt;T ConvertTo&amp;lt;T&amp;gt;(object value, T defaultValue)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; if (Convert.IsDBNull(value)) return defaultValue;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; return (T)value;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;ConvertTo(rdr[&amp;quot;IntroductionDate&amp;quot;], default(DateTime));&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9912942" width="1" height="1"&gt;</description></item><item><title>Creating Collections of Entity Objects using LINQ and Field Method - Paul Sheriff's Blog for the Real World</title><link>http://weblogs.asp.net/psheriff/archive/2013/02/25/creating-collections-of-entity-objects-using-linq-and-field-method.aspx#9912837</link><pubDate>Mon, 25 Feb 2013 17:45:31 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9912837</guid><dc:creator>Creating Collections of Entity Objects using LINQ and Field Method - Paul Sheriff's Blog for the Real World</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Creating Collections of Entity Objects using LINQ and Field Method - Paul Sheriff&amp;#39;s Blog for the Real World&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9912837" width="1" height="1"&gt;</description></item><item><title>re: Creating Collections of Entity Objects using LINQ</title><link>http://weblogs.asp.net/psheriff/archive/2013/02/11/creating-collections-of-entity-objects-using-linq.aspx#9901351</link><pubDate>Fri, 22 Feb 2013 14:09:58 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:9901351</guid><dc:creator>Andrei</dc:creator><description>&lt;p&gt;To be honest this isn&amp;#39;t exactly under the hood. Using Linq to SQL or Entity Framework would be the way to go for someone who is learning this for the first time.&lt;/p&gt;
&lt;p&gt;I think this is still useful tough to show the functionality you can achieve with LINQ.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=9901351" width="1" height="1"&gt;</description></item></channel></rss>