我可以在非Web应用程序中使用NHibernate SysCache吗? [英] Can I use NHibernate SysCache with Non-Web-Application?

查看:94
本文介绍了我可以在非Web应用程序中使用NHibernate SysCache吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用NHibernate(3)和SQL Server 2008的Windows服务.WPF客户端通过WCF连接到此服务以使用DataAccess. 我的问题现在是:在此方案中可以使用SysCache或SysCache2-还是仅在Web-/ASP.NET-Applications中可用?

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?

推荐答案

是的,它工作正常.

如果愿意,您甚至可以在控制台应用程序中使用它(只要计算机安装了完整的.NET Framework,而不仅仅是客户端配置文件).

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).

这篇关于我可以在非Web应用程序中使用NHibernate SysCache吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆