nhibernate / nhibernate-core

NHibernate Object Relational Mapper
https://nhibernate.info
GNU Lesser General Public License v2.1
2.11k stars 921 forks source link

QueryOver<MyEntity>().List() only returns proxies #3505

Closed umerkle closed 3 months ago

umerkle commented 3 months ago

On some of my entities, when i do a session.QueryOver<MyEntity>().List(), i only get a list of MyEntityProxies.

Has anybody an idea how this can happen?

When i access some property of MyTask, i would expect that it could be a proxy because of lazy loading. But not MyEntity itself?

Edit: I use NHibernate 5.4.3 (.NET Framework 4.8) and FluentNHibernate 3.2.1