Expression<Func<Custom, bool>> end = Expression.Lambda<Func<Custom, bool>>(query, new ParameterExpression[] { x });
var c = querys.DB.Customs.Where(end);
public ResultBase GetEntitys(Expression expression, ParameterExpression param)
{
ResultBase result = new ResultBase();
result.ProgressName = "GetEntitys";
IQueryable q=null;
if (expression == null)
{
q = DBConn.DataBase.TaskBatchs;
}
else
{
q = DBConn.DataBase.TaskBatchs.Where(Expression.Lambda<Func<TaskBatch, bool>>(expression, param));
}
Query<TaskBatch>(q, ref result);
if (result.HasError) result.Message = "读取批次失败";
return result;
}