钱行慕

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

05 2020 档案

【译】ASP.NET Core Web APIs(三):使用ASP.NET Core创建Web APIs 【下篇】
摘要:原文链接:传送门。 Multipart/form-data 请求推断 当一个Action方法的参数被标记为[FromForm]特性时,[ApiController]特性会应用一个推断规则,此时,请求Content-Type被推断为 multipart/form-data。 为了禁用默认的行为,在St 阅读全文

posted @ 2020-05-27 21:29 钱行慕 阅读(869) 评论(0) 推荐(0) 编辑

【译】ASP.NET Core Web APIs(二):使用ASP.NET Core创建Web APIs 【中篇】
摘要:原文链接:传送门。 特性路由需求 [ApiConroller]特性使得特性路由成为一个需求。举个例子: [ApiController] [Route("[controller]")] public class WeatherForecastController : ControllerBase 通过 阅读全文

posted @ 2020-05-25 20:49 钱行慕 阅读(670) 评论(0) 推荐(0) 编辑

【译】ASP.NET Core Web APIs(一):使用ASP.NET Core创建Web APIs 【上篇】
摘要:原文链接:传送门。 ASP.NET Core 支持使用C#创建Restful风格的服务,也被称之为 Web APIs。一个Web API 使用 Controller 来处理请求。在Web API中Controller是继承自ControllerBase的类。这篇文章介绍了如何使用Controller 阅读全文

posted @ 2020-05-20 21:09 钱行慕 阅读(462) 评论(0) 推荐(1) 编辑

ASP.NET Core 验证:(三)ASP.NET Core基于脚手架的Identity
摘要:ASP.NET Core 以 Razor Class Library 的形式提供了ASP.NET Core Identity 。包含有Identity的应用程序可应用脚手架来选择性的添加包含在Identity RCL中的代码。你或许想要生成代码以便对它们进行改动并改变它们的行为。举个例例子,你可以指 阅读全文

posted @ 2020-05-10 20:39 钱行慕 阅读(514) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示