---------------------------------------------快速适用 效果: where name like '%王%' and Age>=35 or Age<10 构建表达式树:(快速式) 1.添加命名空间: using System.Linq.Expressions; 2.声明参数表达式(比如Book实体) ParameterExpression param = Expression.Parameter(typeof(Book)); 3. Expression
LINQ查询表达式---------select子句 1.1常见的select子句查询 class Program { public class PerInfo { public int Id { get; set; } public string Name { get; set; } public int Age { get; set; } public List<int> Scores { get; set; } } List<PerInfo> PerInfos = new L