[ https://issues.apache.org/jira/browse/IBATISNET-224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579916#action_12579916 ]
David Marzo commented on IBATISNET-224: --------------------------------------- Lazyload for single object property, work. See https://issues.apache.org/jira/browse/IBATISNET-105 and https://issues.apache.org/jira/browse/IBATISNET-182) Limitation of DynamicProxies: For proxies of class only intercept virtual methods because of you must declare in collections the method Count, GetEnumerator, RemoveAt .. as virutal, also its applicable for class that is lazy loaded You need to define "virtual" the properties of your class. Could you provide some test? > "lazyLoad" for single object property does not work > --------------------------------------------------- > > Key: IBATISNET-224 > URL: https://issues.apache.org/jira/browse/IBATISNET-224 > Project: iBatis for .NET > Issue Type: Bug > Components: DataMapper > Affects Versions: DataMapper 1.6.1 > Reporter: Yao jian > > The "lazyLoad" attribute of the "result" element does not work when the > "property" refers a single object, i.e., not a collection. > The IBatis.NET sets the object property to an object with all property values > to their defaults without query them from the underline database -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.