开发者

What is the difference between SaveOrUpdateCopy and SaveOrUpdate in Nhibernate?

What is the difference between SaveOrUpdateCopy and SaveOr开发者_如何学GoUpdate method in NHibernate?


From nHibernate doc:

Copy the state of the given object onto the persistent object with the same identifier. If there is no persistent instance currently associated with the session, it will be loaded. Return the persistent instance. If the given instance is unsaved or does not exist in the database, save it and return it as a newly persistent instance. Otherwise, the given instance does not become associated with the session.

There is one nice blog post on the subject.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜