修改数据库中的值后,反映应用程序中的更改 [英] Reflect the change in application after modifying values in database

查看:91
本文介绍了修改数据库中的值后,反映应用程序中的更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将web.config中存在的用户定义值移动到database.i,从global.cs文件的appliction_start事件中检索数据库中的值,并将这些值存储在字典集合中,并将在整个应用程序中使用。

现在我的问题是,如果我更改数据库中的任何值,将不会反映更改,以反映更改我必须重置iis.hence立即反映更改或在特定时间间隔之后有可能调用application_start事件再次或其他方式。



请帮助....

i have moved user defined values present in web.config to database.i retreive the values from database on appliction_start event of global.cs file and store those values in dictionary collection and will use throughout the application.
now my problem is if i change any value in database the changes will not be reflected, to reflect the changes i have to reset the iis.hence to reflect the changes immediately or after a particular interval is there possibility like invoking the application_start event again or some other way.

please help....

推荐答案

看看观察员 [ ^ ]设计模式。


这篇关于修改数据库中的值后,反映应用程序中的更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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