Using HttpContext.Current.Application to store simple data
问题 I want to store a small list of a simple object (containing three strings) in my ASP.NET MVC application. The list is loaded from the database and it is updated rarely by editing some values in the site's admin area. I'm thinking of using HttpContext.Current.Application to store it. This way I can load it in the Global.asax: protected void Application_Start() { RegisterRoutes(RouteTable.Routes); HttpContext.Current.Application["myObject"] = loadDataFromSql(); // returns my object } And then