开发者

NHibernate: Manually handling collection of values reading using IStatelessSession

开发者 https://www.devze.com 2023-02-28 09:08 出处:网络
During bulk load of entities into a database, I have a scenario where an incoming entity relies on an existing entity in the database in order to compute a value. This dependency itself has a collecti

During bulk load of entities into a database, I have a scenario where an incoming entity relies on an existing entity in the database in order to compute a value. This dependency itself has a collection of value types which is used to help compute this value. Since I am using IStatelessSession, this collection is ignored when the entity is loaded via the session. I'd like to handle the load of this collection manually but am having trouble finding guidance on how to do this.

Can anyone suggest the easiest wa开发者_StackOverflowy to query values into a collection manually?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号