非法尝试将一个集合与两个打开的会话相关联 [英] Illegal attempt to associate a collection with two open sessions
问题描述
我正在用C#在Nhibernate中开发ERP.
我有一个对象业务伙伴,其中肯定包含不同的地址,银行帐户.....
当我保存一个新的业务对象时...会很快...
但是,当我从数据库中获取任何BusinessPartner并将另外一个或两个地址添加到业务伙伴的集合中并尝试saveorupdate()时,它将不起作用并抛出此异常
非法尝试将一个集合与两个打开的会话相关联
这是我关于这个问题的第三天...不知道问题出在哪里...
希望有人能帮助我
在映射文件中,我尝试了所有类型的级联,但没有成功,然后我坚持使用save-update
Hi i am developing an ERP in Nhibernate with C#
i have an object business partner which contains certainly different collections of address, bank accounts.....
when i save a new business object ... it does swiftly...
but when i fetch any BusinessPartner From database and add one or two more address in to collection of business partner and try to saveorupdate() it does not work and throw me this exception
Illegal attempt to associate a collection with two open sessions
Its my Third day on this problem... dont know where is the problem...
Hoping that some one can help me out
in Mapping File i tried all type of cascading but didn''t work then i stick to save-update
推荐答案
没有人可以给我一个答案……? ??????????哇,
如果没有Nhibernate的帮助,那么为什么我们要花时间去解决这个问题...
no body can give me an ans ... ??????????? wow,
if there is no help avalable for Nhibernate so why we are waisting our time with it...
我确信NHibernate的人有一个论坛,如果您需要有关他们的产品的帮助.
您已经花了三天时间,但是不到三分钟,我发现使用google的信息很多,例如 this [ ^ ].怎么可能?
I am sure the NHibernate people have a forum if you want help with their product.
You''ve spent three days on this, but in less than three minutes I found a ton of info using google, such as this[^]. How is that possible ?
亲爱的,我已经访问了此站点.这不是解决方案...
感谢您为我花费时间...
Honey i already visit this site.. its not the solution...
thanks for spending your time for me...
这篇关于非法尝试将一个集合与两个打开的会话相关联的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!