-
Notifications
You must be signed in to change notification settings - Fork 893
Closed
Description
使用.Where(o => o.ActivityType == ac.Type)报错
版本号:3.2.640
var activityPeopleCountList = _fsql.Select<SalesmanActivityConfig>() .Where(a => a.SalesmanId == req.SalesmanId) .ToList(a => new ActivityPeopleCountModel { Type = a.Type, Count = _fsql.Select<SalesmanActivityOrder>() .Where(o => o.SalesmanId == a.SalesmanId) .Where(o => a.Type == o.ActivityType)//报错ArgumentException: Requested value 'a.Type' was not found. //.Where("o.ActivityType = a.Type", null)//正常 .Where(o => o.PayStatus == SalesmanActivityOrderPayStatusEnum.YiWanCheng) .WhereIf(req.StartTime.HasValue, o => o.AddTime.Between(req.StartTime.Value, req.EndTime.Value)) .Count(), });
Metadata
Metadata
Assignees
Labels
No labels
