摘要:
1、缓存接口 2、扩展 3、MemoryCacheManager实现 摘自:NopCommerce框架(http://nopcommerce.codeplex.com/) 阅读全文
摘要:
恢复内容开始 1、创建仓储模式的相关接口 2、三个文件的代码(命名空间) IRepository.cs代码: using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expression 阅读全文
摘要:
1、添加autofac相关程序集/使用Nuget 2、引入命名空间 3、使用 3.1:直接使用 //builder.RegisterType<FileLogger>(); //builder.RegisterType<FileLogger>().As<ILogger>(); 3.2:配置文件使用 3 阅读全文