• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
简单不先于复杂,而是在复杂之后
博客园    首页    新随笔    联系   管理    订阅  订阅
2013年4月7日
在ASP.NET Web API下使用[Serializble]的问题
摘要: By default you don't need to use neither [Serializble] nor [DataContract] to work with Web API. 默认情况下ASP.NET Web API 不需要[Serializble] 或者[DataContract]标记Just leave your model as is, and Web API would serialize all the public properties for you.ASP.NET Web API会自动帮我们序列化所有Public属性Only if you want to 阅读全文
posted @ 2013-04-07 19:27 sharpCode 阅读(442) 评论(1) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3