上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
摘要: let设置临时条件 阅读全文
posted @ 2018-10-29 17:33 清晨时光 阅读(2796) 评论(0) 推荐(0) 编辑
摘要: .NET Core微服务系列基础文章索引(目录导航Final版) 阅读全文
posted @ 2018-10-21 09:30 清晨时光 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 1、新建.net core 工程。 2、添加类book。 3、添加数据库上下文类 4、添加配置文件数据库连接字符串 5、注册数据库上下文 在Visual Studio 2017中的资源管理器中找到startup.cs文件,用鼠标双击打开,在startup.cs文件的ConfigureServices 阅读全文
posted @ 2018-10-19 20:56 清晨时光 阅读(701) 评论(1) 推荐(0) 编辑
摘要: static string dataConnection = ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString; static IDbConnection connection = new MySqlConnection(dataConnection); ... 阅读全文
posted @ 2018-10-19 19:56 清晨时光 阅读(477) 评论(0) 推荐(0) 编辑
摘要: ASP.NET Core 运行原理剖析 阅读全文
posted @ 2018-10-08 20:53 清晨时光 阅读(337) 评论(0) 推荐(0) 编辑
摘要: ASP.NET WebApi 实现Token验证 https://www.cnblogs.com/dukang1991/p/5627584.html 阅读全文
posted @ 2018-10-08 20:41 清晨时光 阅读(666) 评论(0) 推荐(0) 编辑
摘要: spring cloud+.net core搭建微服务架构 https://www.cnblogs.com/longxianghui/tag/spring%20cloud/ 阅读全文
posted @ 2018-09-23 11:35 清晨时光 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 在.netframwork的mvc框架下创建的webapi默认同时支持json和xml。 但是.net core新建的web API默认只支持返回json,如果想要同时支持XML。需要修改下配置。 在项目的startup.cs文字中,修改services.AddMvc(),为项目添加xml支持。 加 阅读全文
posted @ 2018-09-06 21:55 清晨时光 阅读(3889) 评论(0) 推荐(0) 编辑
摘要: 转自https://blog.csdn.net/a123_z/article/details/71078062 1:配置 接口注释。 (1)配置生成xml的路径。我们在项目上面点右键→属性→生成标签页配置xml的路径。 (2)在xml的读取路径:在Areas\HelpPage\App_Start\H 阅读全文
posted @ 2018-09-05 23:48 清晨时光 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 方法在Win10 + VS2017(MVC5)测试通过 1、建立 WebApi项目: 输入项目名称和位置,确定,进入模板选择页面。 选择 WEB API 模板(选择Web API 时会添加对MVC 的支持) 2、添加ApiController 查看生产的目录结构,发现WebAPI 的结构和普通MVC 阅读全文
posted @ 2018-09-05 23:43 清晨时光 阅读(2088) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页