摘要:
因为程序中用到 在当前会话上下文中缓存多个数据库的需求,所有查了下资料。 我们在.NET运用中经常用到缓存(Cache)对象。除了System.Web.Caching下的Cache外,我们还可以用到HttpContext.Current.Cache以及HttpRuntime.Cache那么,Http 阅读全文
摘要:
方法1: var builder = new ContainerBuilder();//容器生成器 builder.RegisterType<GF.BLL.BaseBLL>();builder.Register(c => new GF.UI.Web.Controllers.HomeControlle 阅读全文