是否在MVC6(Asp.Net5)中支持SqlCacheDependency [英] Is SqlCacheDependency supported in MVC6 (Asp.Net5)

查看:46
本文介绍了是否在MVC6(Asp.Net5)中支持SqlCacheDependency的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MVC6(Asp.Net5)是否支持SqlCacheDependency - 我找不到相同的参考或示例。 



我从下面的链接得到了一个参考,但它无法正常工作。



https:// github。 COM / ASPNET /Caching/blob/67aef94080bc0302ece7a2b42f5a97ed68efdfa1/samples/SqlServerCacheSample/Program.cs#L39



我尝试下载完整的代码,它提供了200多个错误,因为多个项目的project.json中的某些依赖项引用了beta版本。我更正了版本号这些依赖于rc1版本。在所有项目中执行此
将此减少为8-10个我无法解决的错误。



另一件事 - 即使删除了这些构建错误,我是否需要将整个源代码放在我需要实现的项目中?SqlCacheDependency?这有点令人困惑。



如果有人澄清这一点并给出一些见解,我们将不胜感激。


解决方案

此论坛适用于一般的C#开发。


ASP.Net有一个专门的主论坛 - 同样的登录,但没有移动它们之间的帖子是可能的:

http://forums.asp.net/


Is SqlCacheDependency supported in MVC6 (Asp.Net5) - I can't find any reference or example for the same. 

I got a reference from below link but it is not working.

https://github.com/aspnet/Caching/blob/67aef94080bc0302ece7a2b42f5a97ed68efdfa1/samples/SqlServerCacheSample/Program.cs#L39

I tried with downloading the complete code, it gave more than 200 errors because some of the dependency in project.json of multiple projects was referencing the beta version. I corrected the version number of those dependencies with the rc1 version. Doing this throughout all the projects reduced this to 8-10 errors that I am not able to resolve.

Another thing - Even if these build errors are removed, do I need to put this entire source code in the project where I need to implement SqlCacheDependency? This is bit confusing.

Will appreciate if someone clarifies this and gives some insights.

解决方案

This Forum is for general C# development.

ASP.Net has a dedicate main forum - same login, but no moving of posts between them is possible:
http://forums.asp.net/


这篇关于是否在MVC6(Asp.Net5)中支持SqlCacheDependency的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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