摘要:
public class CustomPager { /// <summary> /// 每页行数 /// </summary> public int PageSize { get; set; } /// <summary> /// 总行数 /// </summary> public int Tot 阅读全文
摘要:
Model Binder(模型绑定器),顾名思义,可以形象的理解为将数据绑定到一个 Model 的工具。这个 Model 是 Action 方法需要用到的某个类型(既可以是方法参数的类型也可以是方法内部对象的类型),要绑定到它上面的值可以来自于多种数据源。 MVC 框架内置默认的 Model Bin 阅读全文
摘要:
添加一个类继承JsonResult public class CustomJsonResult : JsonResult { private const string _dateFormat = "yyyy-MM-dd HH:mm:ss"; public CustomJsonResult() { s 阅读全文
摘要:
IOC(控制反转) + DI(依赖注入) 面向接口编程 Unity、AutoFac、Spring.Net、Castie等 基础功能示例: class Dog { public void Voice() { Console.WriteLine("Dog Wang.wang"); } public vo 阅读全文