简体   繁体   English

我可以在非Web应用程序中使用NHibernate SysCache吗?

[英]Can I use NHibernate SysCache with Non-Web-Application?

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. 我有一个使用NHibernate(3)和SQL Server 2008的Windows服务。WPF客户端通过WCF连接到此服务以使用DataAccess。 My question is now: Can I use SysCache or SysCache2 in this Scenario - or are they only usable in Web-/ASP.NET-Applications? 我的问题现在是:在这种情况下可以使用SysCache还是SysCache2-还是仅在Web- / ASP.NET-Applications中可用?

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). 如果需要,您甚至可以在控制台应用程序中使用它(只要计算机安装了完整的.NET Framework,而不仅仅是客户端配置文件)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM