From: Ricardo P. (JIRA) <nh...@gm...> - 2011-04-07 21:24:55
|
[ http://216.121.112.228/browse/NH-2632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20843#action_20843 ] Ricardo Peres commented on NH-2632: ----------------------------------- using (ISession session = sessionFactory.OpenSession()) using (ITransaction tx = session.BeginTransaction()) { Customer c = new Customer{ Name = "Ricardo Peres", Address = "Portugal" }; Order o = new Order{ Date = DateTime.Today, Customer = c }; session.Save(c); tx.Commit(); } using (ISession session = sessionFactory.OpenSession()) { Customer c = session.Query<Customer>().First(); } > Lazy Properties Causing An Exception If Containing Class Is Set To Not Lazy > --------------------------------------------------------------------------- > > Key: NH-2632 > URL: http://216.121.112.228/browse/NH-2632 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.1.0 > Reporter: Ricardo Peres > > As discussed in NHibernate-Development (http://groups.google.com/group/nhibernate-development/browse_thread/thread/703b76e5b82595d6), when a property is set to lazy but its containing class is set to not lazy, an exception occurs when loading an entity of this class. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |