Is there any architectural or philosophical reason why NHibernate does not have support for self tracking entities? Change tracking based on session is great but it is not usable in some rare cases (e.g. large number of entities in the session but only one entity is modified per transaction).
What is your opinion? Thanks.
I don’t really know what “self-tracking entities” means, I guess it comes from entity framework? The
IStatelessSessiondoes not cache entities. The session is not build to have a lot of entities in the cache, but to only contain the entities to show on the screen to the user. If you need batching, or long running transactions, other tools will do the job better than NHiberante. I guess it is not build in NHiberante for the following reasons: