posts - 20,comments - 0,views - 3490
02 2023 档案
C# IDataReader转换为Json
摘要:1 /// <summary> 2 /// IDataReader转换为Json 3 /// </summary> 4 /// <param name="dataReader">DataReader对象</param> 5 /// <returns>Json字符串</returns> 6 publi 阅读全文
posted @ 2023-02-28 16:44 旧路人 阅读(34) 评论(0) 推荐(0) 编辑
Net6读取AppSettings.json
摘要:1、创建Helper类 public class AppHelper { private static IConfiguration _config; public AppHelper(IConfiguration configuration) { _config = configuration; 阅读全文
posted @ 2023-02-15 09:39 旧路人 阅读(330) 评论(0) 推荐(0) 编辑
Net6 读取POST请求 BODY中的内容
摘要:StreamReader stream = new StreamReader(Request.Body); string body = stream.ReadToEndAsync().GetAwaiter().GetResult(); 阅读全文
posted @ 2023-02-09 16:06 旧路人 阅读(443) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 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 29
30 31 1 2 3 4 5

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