[ http://issues.apache.org/jira/browse/IBATISNET-105?page=all ]
Ron Grabowski updated IBATISNET-105: ------------------------------------ Attachment: (was: LazyLoad.zip) > Lazy load support for Strong typed collections and single Items > --------------------------------------------------------------- > > Key: IBATISNET-105 > URL: http://issues.apache.org/jira/browse/IBATISNET-105 > Project: iBatis for .NET > Type: New Feature > Components: DataMapper, Testing > Reporter: David Marzo > Attachments: LazyLoad_rev03.zip, LazyLoad_rev04.zip > > Nowadays Ibatis only support lazy load for no typed (IList) collections and > can not lazy load relationship of 0 or 1. > Changes: > - In IBatisNet.DataMapper.Test.NUnit.SqlMapTests.ResultMapTest > .TestLazyWithStronglyTypedCollectionMapping() > exist one test that end ok but its outdated and it should fail. > - BatisNet.DataMapper.Test.Domain.Order > Ln 22: > Original: > private IList _lineItems;//LineItemCollection > Correct: > private LineItemCollection _lineItems; > Ln: 50 > Original: > public IList LineItems > Correct: > public LineItemCollection LineItems > {...} > > In the statment order-with-lines-collection add to > LazyLoad = "true" > <resultMap id="order-with-lines-collection" class="Order" > extends="lite-order-result-by-name" > > <result property="LineItems" column="Order_ID" > select="GetLineItemsForOrderWithListClass" lazyLoad="true"/> > </resultMap> > -TODO add test for 0...1 relationship , ej Worker.Boss > Attached its the files changed to implement "beta" this feature > -- 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