开发者

Access one database from multiple ORMs :: Caching issue

开发者 https://www.devze.com 2023-01-01 05:48 出处:网络
I know this is not a good idea and the best would be to let the applications talk Web Services. But I have a situation where the legacy application is accessing a database with an ORM and I need to ac

I know this is not a good idea and the best would be to let the applications talk Web Services. But I have a situation where the legacy application is accessing a database with an ORM and I need to access the same database from the new .net application using Fluent nHibernate.

So the question is what problems this will make and how to solve them? I guess the main issue is the caching. I need to disable the caching on one of the applications (which would be the new app).

So how can I disable caching in nHibernate?

Is there anything else that should be ca开发者_运维百科reful about?


Caching is not enabled by default in NHibernate.

One thing you need to consider is how to handle concurrent updates. Suggested read: http://nhibernate.info/doc/nh/en/index.html#transactions-optimistic

0

精彩评论

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