摘要: 由上图可以看出消息处理器的使用场合和使用方法。 使用场合: HttpServer 得到请求时. public static class WebApiConfig { public static void Register(HttpConfiguration config) { config.Mess 阅读全文
posted @ 2016-02-18 17:01 haiziguo 阅读(699) 评论(0) 推荐(0) 编辑
摘要: 【转载】http://www.cnblogs.com/chy2055/p/5181352.html 学习是技术人员成长的基础,本次分享20本技术方面的书籍,这些书不是每一本都是经典,但是每一本都有其特点。以下20本大部分本人都看过,因此推荐给大家。(本次推荐的20本只是一个参考,比如像Head Fi 阅读全文
posted @ 2016-02-18 16:34 haiziguo 阅读(586) 评论(2) 推荐(0) 编辑
摘要: void 返回204状态码 HttpResponseMessage Convert directly to an HTTP response message. IHttpActionResult Call ExecuteAsync to create an HttpResponseMessage, 阅读全文
posted @ 2016-02-18 16:04 haiziguo 阅读(4171) 评论(0) 推荐(0) 编辑
摘要: Class cl = new Class() { ClassName = "一年级1班" }; TestDBEntities context = new TestDBEntities(); context.Class.Add(cl); Student st = new Student() { Cla 阅读全文
posted @ 2016-02-18 10:40 haiziguo 阅读(1557) 评论(0) 推荐(0) 编辑