2020年7月18日
摘要: using System; using System.Collections.Generic; using System.Data; using System.Data.Common; using System.Data.SqlClient; using System.Reflection; usi 阅读全文
posted @ 2020-07-18 14:26 程铭 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 首先添加NuGet包 然后添加一个服务类 public class AutoMap:Profile { public AutoMap() { CreateMap<A, B>(); CreateMap<B, A>() .ForMember(des => des.Age, opt => opt.MapF 阅读全文
posted @ 2020-07-18 14:20 程铭 阅读(204) 评论(0) 推荐(0) 编辑
摘要: using (HttpClient httpClient = new HttpClient()) { HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, URL); request.Content = new St 阅读全文
posted @ 2020-07-18 13:36 程铭 阅读(233) 评论(0) 推荐(0) 编辑
  2020年7月2日
摘要: /// <summary> /// 获取属性 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="description"></param> /// <returns></returns> private T Ge 阅读全文
posted @ 2020-07-02 14:56 程铭 阅读(1091) 评论(0) 推荐(0) 编辑
  2020年5月9日
摘要: MYsql数据库链接字符串 Data Source=127.0.0.1;port=3306;Initial Catalog=shujuk;user id=sa;password=123456; port =3306是端口号 SQLserver Data Source=127.0.0.1;Initia 阅读全文
posted @ 2020-05-09 15:02 程铭 阅读(365) 评论(0) 推荐(1) 编辑
  2020年4月14日
摘要: inq 阅读全文
posted @ 2020-04-14 16:51 程铭 阅读(919) 评论(0) 推荐(1) 编辑
  2020年4月11日
摘要: public Response<bool> GetSheetValues(IFormFile file) {if (file == null || file.Length <= 0) return ResultBuilder.FailResult(false, "请检查文件是否存在"); try { 阅读全文
posted @ 2020-04-11 11:41 程铭 阅读(1644) 评论(1) 推荐(2) 编辑
  2020年3月27日
摘要: //文件流 using (MemoryStream mem = new MemoryStream()) { //文件名 string FileName =; //数据 var OrderList = //写入数据 StreamWriter sw = new StreamWriter(mem); fo 阅读全文
posted @ 2020-03-27 12:43 程铭 阅读(3541) 评论(0) 推荐(0) 编辑
  2019年11月8日
摘要: v-if="item.BGM_MyOrder_State.includes(tiaojian)" item.BGM_MyOrder_State是第一个字符串 includes()相当于 模糊查询 tiaojian是第二个字符串GET到的第一个v-if知识点 阅读全文
posted @ 2019-11-08 14:46 程铭 阅读(11631) 评论(0) 推荐(0) 编辑
  2019年11月7日
摘要: 请求到数据了,在mounted中是存在数据的,但是在加载完成之后,数据就又没有了 此处在大佬的引导下得知了this的指向不对 我们可以使用这种方式进行保存当前this 也可以用 bind 指向 this 也行 阅读全文
posted @ 2019-11-07 10:27 程铭 阅读(2823) 评论(0) 推荐(0) 编辑