<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://devlicious.com/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>Alan Northam - All Comments</title><link>http://devlicious.com/blogs/alan_northam/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>re: Getting Started with NHibernate: Part IV</title><link>http://devlicious.com/blogs/alan_northam/archive/2007/07/26/getting-started-with-nhibernate-part-iv.aspx#43551</link><pubDate>Mon, 29 Dec 2008 07:40:42 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:43551</guid><dc:creator>twister</dc:creator><description>&lt;p&gt;Again me.&lt;/p&gt;
&lt;p&gt;I solved this. &lt;/p&gt;
&lt;p&gt;I manually added a record to Database Application table with name &amp;quot;NHBlog&amp;quot;.&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=43551" width="1" height="1"&gt;</description></item><item><title>re: Getting Started with NHibernate: Part IV</title><link>http://devlicious.com/blogs/alan_northam/archive/2007/07/26/getting-started-with-nhibernate-part-iv.aspx#43541</link><pubDate>Fri, 26 Dec 2008 08:52:17 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:43541</guid><dc:creator>twister</dc:creator><description>&lt;p&gt;After some effort I can run it with vs.2008&lt;/p&gt;
&lt;p&gt;But I cant still pass login page. Now error like this&lt;/p&gt;
&lt;p&gt;&amp;quot;not-null property references a null or transient value: NHBlog.BusinessEntities.Security.User.Application&amp;quot;&lt;/p&gt;
&lt;p&gt;in membership providers. &lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=43541" width="1" height="1"&gt;</description></item><item><title>re: Getting Started with NHibernate: Part IV</title><link>http://devlicious.com/blogs/alan_northam/archive/2007/07/26/getting-started-with-nhibernate-part-iv.aspx#43534</link><pubDate>Thu, 25 Dec 2008 15:57:44 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:43534</guid><dc:creator>twister</dc:creator><description>&lt;p&gt;I cant run the application. It gives error in web.config about roleprovider. &lt;/p&gt;
&lt;p&gt;&amp;lt;add name=&amp;quot;NHibernateRoleProvider&amp;quot; type=&amp;quot;NHBlog.DataAccess.Security.NHibernateRoleProvider, NHBlog.DataAccess&amp;quot; applicationName=&amp;quot;NHBlog&amp;quot;/&amp;gt;&lt;/p&gt;
&lt;p&gt;Why do you think?&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=43534" width="1" height="1"&gt;</description></item><item><title>re: Getting Started with NHibernate: Part I</title><link>http://devlicious.com/blogs/alan_northam/archive/2007/05/19/getting-started-with-nhibernate-part-i.aspx#43315</link><pubDate>Thu, 04 Dec 2008 21:30:29 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:43315</guid><dc:creator>joe</dc:creator><description>&lt;p&gt;part 2?&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=43315" width="1" height="1"&gt;</description></item><item><title>re: Getting Started with NHibernate: Part IV</title><link>http://devlicious.com/blogs/alan_northam/archive/2007/07/26/getting-started-with-nhibernate-part-iv.aspx#43249</link><pubDate>Fri, 28 Nov 2008 15:59:08 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:43249</guid><dc:creator>George Fitch</dc:creator><description>&lt;p&gt;The zip file is bad, but is usable. &amp;nbsp;Extract the file, rename it to something with a .zip extension and that new zip file is good.&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=43249" width="1" height="1"&gt;</description></item><item><title>re: ADO.NET, Nullable Types, Casting DBNull and You</title><link>http://devlicious.com/blogs/alan_northam/archive/2008/03/06/ado-net-nullable-types-casting-dbnull-and-you.aspx#43140</link><pubDate>Wed, 19 Nov 2008 08:10:28 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:43140</guid><dc:creator>kirti</dc:creator><description>&lt;p&gt;Cannot set Column 'colunm name' &amp;nbsp;to be null. Please use DBNull instead.&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=43140" width="1" height="1"&gt;</description></item><item><title>re: Getting Started with NHibernate: Part II</title><link>http://devlicious.com/blogs/alan_northam/archive/2007/05/22/getting-started-with-nhibernate-part-ii.aspx#42930</link><pubDate>Fri, 07 Nov 2008 14:21:32 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42930</guid><dc:creator>Swarup</dc:creator><description>&lt;p&gt;I was wondering if the part 3 and 4 are out. It would definitely help in learning Hibernate&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42930" width="1" height="1"&gt;</description></item><item><title>re: ADO.NET, Nullable Types, Casting DBNull and You</title><link>http://devlicious.com/blogs/alan_northam/archive/2008/03/06/ado-net-nullable-types-casting-dbnull-and-you.aspx#42832</link><pubDate>Fri, 31 Oct 2008 03:00:51 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42832</guid><dc:creator>TheHangedMan</dc:creator><description>&lt;p&gt;&amp;quot;The cast above is actually failing but casting with &amp;quot;as&amp;quot; doesn't throw an exception and returns a null value which is just what we want.&amp;quot;&lt;/p&gt;
&lt;p&gt;I used to follow this same approach, but then I noticed that is somewhat dangerous. Imagine the next scenario:&lt;/p&gt;
&lt;p&gt;- We have the following table:&lt;/p&gt;
&lt;p&gt;CREATE TABLE tab1( column1 INT NULL);&lt;/p&gt;
&lt;p&gt;- We have this data-access code:&lt;/p&gt;
&lt;p&gt;DateTime? myValue&lt;/p&gt;
&lt;p&gt;myValue = row[&amp;quot;column1&amp;quot;] as DateTime?; &lt;/p&gt;
&lt;p&gt;Notice how the column's type is INT, but we are trying to get a DateTime?. This code would return always null, even if the value of column1 is not! And that's because a value is being returned, but it is the cast which is failing since we are trying to cast from and object whose underlying value is an int to a DateTime?.&lt;/p&gt;
&lt;p&gt;Errors like this are not so uncommon, and using this approach we would be possibly letting in some hard-to-debug bugs. I think the use of the &amp;quot;as&amp;quot; casting should be discouraged in this context. It would be better if the code throws an exception so that we soon discover the flaw in the code.&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42832" width="1" height="1"&gt;</description></item><item><title>re: Getting Started with NHibernate: Part I</title><link>http://devlicious.com/blogs/alan_northam/archive/2007/05/19/getting-started-with-nhibernate-part-i.aspx#42792</link><pubDate>Sat, 25 Oct 2008 18:08:33 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42792</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;Where's part 2??&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42792" width="1" height="1"&gt;</description></item><item><title>NHibernate Tutorials</title><link>http://devlicious.com/blogs/alan_northam/archive/2007/07/26/getting-started-with-nhibernate-part-iv.aspx#42325</link><pubDate>Tue, 16 Sep 2008 19:17:31 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42325</guid><dc:creator>Chris May</dc:creator><description>&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42325" width="1" height="1"&gt;</description></item><item><title>NHibernate Tutorials</title><link>http://devlicious.com/blogs/alan_northam/archive/2007/05/23/getting-started-with-nhibernate-part-iii.aspx#42324</link><pubDate>Tue, 16 Sep 2008 19:17:27 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42324</guid><dc:creator>Chris May</dc:creator><description>&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42324" width="1" height="1"&gt;</description></item><item><title>NHibernate Tutorials</title><link>http://devlicious.com/blogs/alan_northam/archive/2007/05/22/getting-started-with-nhibernate-part-ii.aspx#42323</link><pubDate>Tue, 16 Sep 2008 19:17:23 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42323</guid><dc:creator>Chris May</dc:creator><description>&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42323" width="1" height="1"&gt;</description></item><item><title>NHibernate Tutorials</title><link>http://devlicious.com/blogs/alan_northam/archive/2007/05/19/getting-started-with-nhibernate-part-i.aspx#42322</link><pubDate>Tue, 16 Sep 2008 19:17:19 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42322</guid><dc:creator>Chris May</dc:creator><description>&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42322" width="1" height="1"&gt;</description></item><item><title>re: Casting options in C#</title><link>http://devlicious.com/blogs/alan_northam/archive/2007/10/07/casting-options-in-c.aspx#42231</link><pubDate>Sun, 07 Sep 2008 07:45:09 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42231</guid><dc:creator>lee</dc:creator><description>&lt;p&gt;There is also another difference that you failed to mention: C style casting works well for reference types AND for value types - while the &amp;quot;as&amp;quot; style ONLY works for reference types&lt;/p&gt;
&lt;p&gt;this difference can be crucial when you try to write generic code&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42231" width="1" height="1"&gt;</description></item><item><title>Fioricet antidepressants.</title><link>http://devlicious.com/blogs/alan_northam/archive/2007/09/25/wcf-and-nhibernate.aspx#41749</link><pubDate>Fri, 08 Aug 2008 09:29:34 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:41749</guid><dc:creator>Fioricet.</dc:creator><description>&lt;p&gt;Fioricet. Cheapest fioricet. Buy fioricet. Fioricet plain pill. Order fioricet cash on delivery. Buy fioricet online without a prescription.&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=41749" width="1" height="1"&gt;</description></item></channel></rss>