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) 编辑
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) 编辑
Net6 读取POST请求 BODY中的内容
摘要:StreamReader stream = new StreamReader(Request.Body); string body = stream.ReadToEndAsync().GetAwaiter().GetResult();
阅读全文
posted @
2023-02-09 16:06
旧路人
阅读(443)
推荐(0) 编辑