摘要: 应报表需要,图标需要用线链接,在连线时,发现线条的坐标比较坑,其中 CreateAnchor中的col1,row1参数本以为是起始单元格的位置,踩坑过程中发现col1仅仅代表一个列的的位置,并不和row1一起,且必须 col1小于col2,row1小于row2 否则生成的excel打开时会报错!!! 阅读全文
posted @ 2022-05-23 14:47 MrJohnson 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-11-12 16:23 MrJohnson 阅读(11) 评论(0) 推荐(0) 编辑
摘要: --查询死锁 select request_session_id spid, OBJECT_NAME(resource_associated_entity_id) tableNamefrom sys.dm_tran_lockswhere resource_type='OBJECT'kill 57 - 阅读全文
posted @ 2021-09-30 14:08 MrJohnson 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1:定义用来实现的接口 public interface IComputerBuilder { void createCpu(); void createDisplayScrenn(); void createMemory(); } } 2:实现接口 public class LowComputer 阅读全文
posted @ 2020-11-09 14:20 MrJohnson 阅读(84) 评论(0) 推荐(0) 编辑
摘要: app.Map("/second", _app => { _app.Use(async (context,next)=>{ await context.Response.WriteAsync("second middleware\r\n"); await next.Invoke(); }); }); 阅读全文
posted @ 2020-11-04 21:55 MrJohnson 阅读(1486) 评论(0) 推荐(1) 编辑
摘要: app.Use(async (context,next) => { await context.Response.WriteAsync("first middleware"); await next.Invoke(); }); 阅读全文
posted @ 2020-11-04 21:43 MrJohnson 阅读(304) 评论(0) 推荐(0) 编辑
摘要: var user = new User() { ID= 1, Name = "John", Age = 23, Gender = Gender.男 }; var ty = user.GetType(); MethodInfo method = ty.GetMethod("GetName"); if( 阅读全文
posted @ 2020-06-30 13:43 MrJohnson 阅读(843) 评论(0) 推荐(0) 编辑
摘要: string InsertString<T>(T t) { var type = typeof(T); //反射对象 var A = type.GetProperties(); //获取对象属性 var insertString = "insert into " + t.GetType().Name 阅读全文
posted @ 2020-06-30 11:25 MrJohnson 阅读(2353) 评论(0) 推荐(0) 编辑
摘要: 第一步:新建一个空的 Web Demo 第二步:打开Startup.cs 并注入MVC服务 使用 services.AddMvc(); 配置静态文件访问 使用 app.UseStaticFiles(); 配置简单路由 在UseEndpoints中 建立MVC所需文件夹 以员工信息为例子,在Model 阅读全文
posted @ 2020-06-14 11:36 MrJohnson 阅读(66) 评论(0) 推荐(0) 编辑