摘要: 在开发中,我使用json格式序列化,所以将默认的xml序列化移除public static class WebApiConfig { public static void Register(HttpConfiguration config) { // ... var json = config.Formatters.JsonFormatter; // 解决json序列化时的循环引用问题 json.SerializerSettings.ReferenceLoopHandlin... 阅读全文
posted @ 2014-04-01 22:43 学亮 阅读(6235) 评论(0) 推荐(2) 编辑
摘要: 转载地址:ASP.NET Web API 中的异常处理 阅读全文
posted @ 2014-04-01 17:41 学亮 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 转载地址:ASP.NET Web API 2 中的属性路由使用 阅读全文
posted @ 2014-04-01 16:38 学亮 阅读(209) 评论(0) 推荐(0) 编辑