[ http://issues.apache.org/jira/browse/IBATISNET-124?page=comments#action_12370450 ]
Ron Grabowski commented on IBATISNET-124: ----------------------------------------- This is the code in SelectKey.cs that is causing the problem: if (insertParameterClass != null && ObjectProbe.IsSimpleType(insertParameterClass) == false) { // the Hashtable parameter object is coming into here which is wrong! } Here are two failing test cases. A Hashtable implements IDictionary therefore IsSubclassOf should return true. Apparently not... [Test] public void TestObjectProbeIsSimpleTypeWithHashtable() { Hashtable hashTable = new Hashtable(); Type hashTableType = hashTable.GetType(); Assert.IsTrue(ObjectProbe.IsSimpleType(hashTableType)); } [Test] public void TestIsSubclassOfWithHashtableAndIDictionary() { Hashtable hashTable = new Hashtable(); Type hashTableType = hashTable.GetType(); Assert.IsTrue(hashTableType.IsSubclassOf(typeof(IDictionary))); } > SelectKey.cs Initialization fails if insert parameterClass is IDictionary > ------------------------------------------------------------------------- > > Key: IBATISNET-124 > URL: http://issues.apache.org/jira/browse/IBATISNET-124 > Project: iBatis for .NET > Type: Bug > Components: DataMapper > Versions: DataMapper 1.3 > Reporter: H. E. Sum > Assignee: Ron Grabowski > > Should ignore settable property lookup if insertParameterClass is of type > System.Collections.IDictionary -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira