在应用程序关闭之前,在mvc4中维护可重用数据的最佳方法是什么。 [英] What is best way to maintain the reusable data in mvc4 until the application close.

查看:55
本文介绍了在应用程序关闭之前,在mvc4中维护可重用数据的最佳方法是什么。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我想将过滤后的数据维护到整个应用程序功能中,哪种技术适用于那种技术。

数据应该可以在我的整个功能中使用,并且不应该在导航发生在一个动作时销毁另一个动作。

If I want to maintain filtered data into entire application functionality which technique is suitable to main that.
The data should be available in entire my functionality and should not destroy whenever the navigation happened from one action to another action.

推荐答案

使用会话



https://msdn.microsoft.com/en-us/library/ms178581.aspx [ ^ ]



我如果要保存的数据很小,或者并发用户数很少,则只建议这样做。
Use the Session

https://msdn.microsoft.com/en-us/library/ms178581.aspx[^]

I'd only recommend this if the data to be kept is small, or the number of concurrent users is small.


这篇关于在应用程序关闭之前,在mvc4中维护可重用数据的最佳方法是什么。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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