摘要:
PetShop 部分代码,可以看到每个函数都需要追加HttpRuntime.Cache.Add,都需要在函数体内进行操作。这样子也搞不清楚哪些函数追加了缓存。项目一大就不好控制public static IList GetCategories() { Category cat = new C... 阅读全文
摘要:
引用 dll Microsoft.Practices.Unity.dll Autofac.dll IContainer 接口using System;using System.Collections.Generic;using System.Lin... 阅读全文