上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 101 下一页
摘要: 代码如下: #region 表达式树的访问过程,并转化成sql语句 /// <summary> /// 访问 表达式树 Expression<Func<MyClass, bool>> expressionFunc = x => x.Age > 5 && x.Id == 8; /// 并转化成sql语 阅读全文
posted @ 2020-12-02 17:32 龙骑科技 阅读(271) 评论(0) 推荐(0)
摘要: 动态拼接Lambda表达式-表达式目录树动态构建及修改 访问 :表达式树 Expression<Func<int, int, int>> predicate1 = (m, n) => m * n + 2;修改: (m, n) => m * n + 2;改成(m, n) => m * n - 2; / 阅读全文
posted @ 2020-12-02 15:35 龙骑科技 阅读(187) 评论(0) 推荐(0)
摘要: 代码如下: #region lambda expression 拼接方式1 /// <summary> /// Expression表达式树 /// </summary> public class LambdaParameteRebinder : ExpressionVisitor { /// <s 阅读全文
posted @ 2020-12-02 14:54 龙骑科技 阅读(352) 评论(0) 推荐(0)
摘要: 新建测试类 /// <summary> /// 测试类 /// </summary> public class MyClass { //public MyClass() //{ // ClassName = "一般"; //} public int Age { get; set; } public 阅读全文
posted @ 2020-12-02 14:49 龙骑科技 阅读(142) 评论(0) 推荐(0)
摘要: //IEnuable与IQueryable //var list = new List<int>().AsQueryable(); //list = list.Where(c => c > 1);//参数:Expression<Func<TSource, bool>> predicate,如:Exp 阅读全文
posted @ 2020-12-02 14:44 龙骑科技 阅读(159) 评论(0) 推荐(0)
摘要: 动态拼接Lambda表达式 添加类 #region lambda expression 拼接方式1 /// <summary> /// Expression表达式树 /// </summary> public class LambdaParameteRebinder : ExpressionVisi 阅读全文
posted @ 2020-12-02 13:19 龙骑科技 阅读(246) 评论(0) 推荐(0)
摘要: 新建 public class ParameterRebinder : ExpressionVisitor { private readonly Dictionary<ParameterExpression, ParameterExpression> map; public ParameterReb 阅读全文
posted @ 2020-12-01 12:04 龙骑科技 阅读(636) 评论(0) 推荐(0)
摘要: Hangfire-执行定时任务框架 1、新建netframwork console 控制台项目ConsoleHangfireTest,nuget程序包 添加Hangfire 2、项目ConsoleHangfireTest右键,添加OWIN Startup 类 代码内容: using System; 阅读全文
posted @ 2020-11-27 10:00 龙骑科技 阅读(375) 评论(0) 推荐(0)
摘要: Database数据库的分库分表,表映射,切换表,使用到了IModelCacheKeyFactory 代码如下: using Microsoft.EntityFrameworkCore; using System; using System.Collections; using System.Col 阅读全文
posted @ 2020-11-26 16:06 龙骑科技 阅读(300) 评论(0) 推荐(0)
摘要: 并发字典ConcurrentDictionary+迭代器--异步 代码如下: using Microsoft.EntityFrameworkCore; using System; using System.Collections; using System.Collections.Concurren 阅读全文
posted @ 2020-11-26 16:00 龙骑科技 阅读(192) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 101 下一页