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) 编辑
EF 操作实例
摘要:一、Linq语法 List操作 1.1 有参 public List<GoodsInfo> ShowInfo(string GName,int?Gid) { //true:代表的是获取所有数据,&&代表多条件拼接的意思 List<GoodsInfo> glist = db.GoodsInfo.Whe
阅读全文
posted @
2023-01-12 15:14
旧路人
阅读(86)
推荐(0) 编辑