2020年8月1日
posted @ 2020-08-01 17:33
程铭
阅读(883)
推荐(0)
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
程铭
阅读(540)
推荐(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
程铭
阅读(215)
推荐(0)
摘要:
using (HttpClient httpClient = new HttpClient()) { HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post, URL); request.Content = new St
阅读全文
posted @ 2020-07-18 13:36
程铭
阅读(240)
推荐(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
程铭
阅读(1236)
推荐(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
程铭
阅读(384)
推荐(1)
2020年4月14日
posted @ 2020-04-14 16:51
程铭
阅读(937)
推荐(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
程铭
阅读(1675)
推荐(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
程铭
阅读(3637)
推荐(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
程铭
阅读(11725)
推荐(0)