You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by ro...@apache.org on 2005/05/15 22:00:32 UTC

svn commit: r170257 - in /incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Domain: OuiNonBoolTypeHandlerCallback.cs YesNoBoolTypeHandlerCallback.cs

Author: roberto
Date: Sun May 15 13:00:31 2005
New Revision: 170257

URL: http://svn.apache.org/viewcvs?rev=170257&view=rev
Log:
~Updated C# DataMapper NUnit domain class: renamed YesNoBoolTypeHandlerCallback.cs to OuiNonBoolTypeHandlerCallback.cs

Added:
    incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Domain/OuiNonBoolTypeHandlerCallback.cs
      - copied, changed from r170253, incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Domain/YesNoBoolTypeHandlerCallback.cs
Removed:
    incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Domain/YesNoBoolTypeHandlerCallback.cs

Copied: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Domain/OuiNonBoolTypeHandlerCallback.cs (from r170253, incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Domain/YesNoBoolTypeHandlerCallback.cs)
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Domain/OuiNonBoolTypeHandlerCallback.cs?p2=incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Domain/OuiNonBoolTypeHandlerCallback.cs&p1=incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Domain/YesNoBoolTypeHandlerCallback.cs&r1=170253&r2=170257&rev=170257&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Domain/YesNoBoolTypeHandlerCallback.cs (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper.Test/Domain/OuiNonBoolTypeHandlerCallback.cs Sun May 15 13:00:31 2005
@@ -5,11 +5,11 @@
 namespace IBatisNet.DataMapper.Test.Domain
 {
 	/// <summary>
-	/// YesNoBoolTypeHandlerCallback.
+	/// OuiNonBoolTypeHandlerCallback.
 	/// </summary>
 	/// <remarks>
 	/// Used in account.xml on 
-	///  &lt; result property="BannerOption" type="Bit" dbType="Varchar" column="Account_Banner_Option" /&gt;
+	///  &lt; result property="BannerOption" type="bool" dbType="Varchar" column="Account_Banner_Option" /&gt;
 	/// </remarks>
 	public class OuiNonBoolTypeHandlerCallback : ITypeHandlerCallback
 	{
@@ -44,10 +44,10 @@
 			else if (NO.Equals(s)) 
 			{
 				return false;
-		} 
+			} 
 			else 
 			{
- 				 throw new Exception("Unexpected value " + s + " found where "+YES+" or "+NO+" was expected.");
+				throw new Exception("Unexpected value " + s + " found where "+YES+" or "+NO+" was expected.");
 			}
 		}