You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by gb...@apache.org on 2005/05/10 19:56:11 UTC

svn commit: r169503 - in /incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration: ParamaterMapping/ParameterProperty.cs ResultMapping/ResultProperty.cs

Author: gbayon
Date: Tue May 10 10:56:10 2005
New Revision: 169503

URL: http://svn.apache.org/viewcvs?rev=169503&view=rev
Log:
- Cleaning code

Modified:
    incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ParamaterMapping/ParameterProperty.cs
    incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ResultMapping/ResultProperty.cs

Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ParamaterMapping/ParameterProperty.cs
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ParamaterMapping/ParameterProperty.cs?rev=169503&r1=169502&r2=169503&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ParamaterMapping/ParameterProperty.cs (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ParamaterMapping/ParameterProperty.cs Tue May 10 10:56:10 2005
@@ -304,7 +304,7 @@
 				_direction = (ParameterDirection)Enum.Parse( typeof(ParameterDirection), _directionAttribute, true );
 			}
 			
-			errorContext.MoreInfo = "Intialize a parameter property '" + this.PropertyName + "' .";
+			errorContext.MoreInfo = "Intialize an inline parameter property '" + this.PropertyName + "' .";
 			if (this.CLRType.Length == 0 )  // Unknown
 			{
 				_typeHandler = TypeHandlerFactory.GetUnkownTypeHandler();

Modified: incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ResultMapping/ResultProperty.cs
URL: http://svn.apache.org/viewcvs/incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ResultMapping/ResultProperty.cs?rev=169503&r1=169502&r2=169503&view=diff
==============================================================================
--- incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ResultMapping/ResultProperty.cs (original)
+++ incubator/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/Configuration/ResultMapping/ResultProperty.cs Tue May 10 10:56:10 2005
@@ -292,15 +292,7 @@
 		{
 			_propertyInfo = propertyInfo;
 
-			if ( propertyInfo != null)
-			{
-				_typeHandler =  TypeHandlerFactory.GetTypeHandler(propertyInfo.PropertyType);
-			}
-			// If we specify a type, it can overrride 
-			if (this.CLRType.Length>0)
-			{
-				_typeHandler = TypeHandlerFactory.GetTypeHandler(Resources.TypeForName(this.CLRType));
-			}
+			_typeHandler =  TypeHandlerFactory.GetTypeHandler(propertyInfo.PropertyType);
 		}
 		#endregion
 	}