/// <summary>
/// 动态创建Selects
/// </summary>
/// <typeparam name="TSource"></typeparam>
/// <typeparam name="TResult"></typeparam>
/// <returns></returns>
public static Expression<Func<TSource, TResult>> CreateMemberInitExpression<TSource, TResult>()
{
//获取所有 DisplayName 特性的字段
var properties = typeof(TSource).GetProperties().Where(x => x.CustomAttributes.Any(t => t.AttributeType == typeof(DisplayNameAttribute))).ToList();
Dictionary<string, string> fieldDic=properties.ToDictionary(x => x.Name, y => y.Name);
Expression<Func<TSource, TResult>> selector = null;
ParameterExpression left = Expression.Pa