Can I use NHibernate SysCache with Non-Web-Application?

风流意气都作罢 提交于 2020-01-05 04:39:07

问题


I have a Windows Service which is using NHibernate (3) and SQL Server 2008. WPF-Clients are connecting over WCF to this Service for using DataAccess. My question is now: Can I use SysCache or SysCache2 in this Scenario - or are they only usable in Web-/ASP.NET-Applications?


回答1:


Yes, it works just fine.

You can use it even in a console app if you want to (provided the computer has the full .NET Framework installed and not just the Client Profile).



来源:https://stackoverflow.com/questions/12025894/can-i-use-nhibernate-syscache-with-non-web-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!