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