No persister for: Castle.Proxies.<EntityName>Proxy and lazy=“true” in NHibernate?
问题 I am trying to use lazy loading for a property of one of my entities The property mapping is something like this: <property name="Foobar" type="AnsiString" column="FOOBAR" lazy="true"/> However when I am tring to save an instance of this entities (using Linq), it throws a DatabaseQueryException with the following inner exception: NHibernate.MappingException : No persister for: Castle.Proxies.FooEntityProxy" And when I remove the lazy="true" item, the exception doesn't get thrown anymore. What