I saw some LINQ code examples which contains ThenInclude . Where can I find such method? In external library or other namespace.
I want to use such method for get data for derived, but I cannot find such method or do you know other solution
return _dbContext.Goals
.Where(p => p.Owner.Id == userId)
.Include(p => p.GoalExpectation)
.ThenInclude<RangeGoalExpectation>(p => p.MinValue)
.ThenInclude<RangeGoalExpectation>(p => p.MaxValue)
.ThenInclude<SpecifiedGoalExpectation>(p => p.Value)
然后,Include是Entity Framework Core(EF 7)的一部分。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.