摘要: 根据NETCore的注入方式添加三个接口 /// <summary> /// 瞬时注入服务接口 /// </summary> public interface ITransient { } /// <summary> /// 作用域注入服务接口 /// </summary> public inter 阅读全文
posted @ 2024-07-12 16:02 Robot-Blog 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 文件模板代码 T4_GetEntityDic <#@ template language="C#" #> <#@ output extension=".cs" #> <#@ assembly name="System.Core" #> <#@ import namespace="System.IO" 阅读全文
posted @ 2024-06-18 14:30 Robot-Blog 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 优化方向 1.使用合适的索引:确保查询中涉及的字段有适当的索引。索引可以帮助数据库引擎快速定位和检索数据,提高查询效率。 2.避免使用通配符查询:尽量避免在查询条件中使用通配符 '%',因为这样的查询会导致全表扫描,影响性能。 3.避免使用函数:在查询条件中避免使用函数,尽量在字段上使用函数,因为函 阅读全文
posted @ 2024-06-05 11:58 Robot-Blog 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 布局图 Job Transformations Table input SELECT '内容' AS INFO FROM DUAL; Set variables Modified JavaScript value Set variables 2 Reference: Kettle 连接 Oracle 阅读全文
posted @ 2024-05-29 11:31 Robot-Blog 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 公式处理数字 正则处理字符串 对字段名:重命名,删除,修改字段类型 Reference: Kettle 连接 Oracle 使用手册 及 问题解决方案 阅读全文
posted @ 2024-05-29 11:19 Robot-Blog 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 布局图 Set variables JavaScript(循环逻辑) var min = new Number(parent_job.getVariable("MIN")); var max = new Number(parent_job.getVariable("MAX")); if(max >= 阅读全文
posted @ 2024-05-28 14:53 Robot-Blog 阅读(39) 评论(0) 推荐(0) 编辑
摘要: Claims // 1.定义需要使用到的Claims var claims = new List<Claim> { new Claim("Name", "UserName"), new Claim(ClaimTypes.Role, "Admin"), new Claim(ClaimTypes.Rol 阅读全文
posted @ 2024-05-21 17:52 Robot-Blog 阅读(14) 评论(0) 推荐(0) 编辑
摘要: valueOf var a = { value: 1 , valueOf: function() { return this.value++; } } Symbol.toPrimitive var a = { value: 1 , get[Symbol.toPrimitive]() { return 阅读全文
posted @ 2024-05-17 15:10 Robot-Blog 阅读(4) 评论(0) 推荐(0) 编辑
摘要: AuthorizationWithCustMiddleware /// <summary> /// 自定义授权中间件类:使用 身份验证中间件 存储的身份信息来进行权限验证 /// 一定要先启用 身份验证中间件(app.UseAuthentication()),它会验证请求中的身份信息,并将身份信息存 阅读全文
posted @ 2024-05-10 17:30 Robot-Blog 阅读(105) 评论(0) 推荐(0) 编辑
摘要: Nuget <PackageReference Include="Hangfire.AspNetCore" Version="1.8.5" /> <PackageReference Include="Hangfire.Dashboard.BasicAuthorization" Version="1. 阅读全文
posted @ 2024-04-22 17:32 Robot-Blog 阅读(90) 评论(0) 推荐(0) 编辑