摘要: restful api 是一种书写风格 获取列表 get api/todo 获取指定 get api/todo/1 新增资料 post api/todo 更新资料 put api/todo/1 删除资料 delete api/todo/1 阅读全文
posted @ 2022-05-01 13:15 changsen- 阅读(22) 评论(0) 推荐(0) 编辑
摘要: builder.Services.AddDbContext<xdzs_hryContext>(o => o.UseSqlServer(builder.Configuration.GetConnectionString("TodoDataBase"))); // 在 Program.cs 里面添加 阅读全文
posted @ 2022-05-01 12:36 changsen- 阅读(236) 评论(0) 推荐(0) 编辑