Code: Select all
public class Car
{
public int Id { get; set; }
public string LicencePlateNumber { get; set; }
public int PersonId { get; set; }
public Person Person { get; set; }
}
public class Person
{
public Id { get; set; }
public string Name{ get; set; }
public ICollection<Car> Cars { get; set; } = new HashSet<Car>();
}
Code: Select all
List<Car> cars = await DbContext.Cars.Include(c => c.Person).Skip(1).Take(1).ToListAsync();
I've tried EF Core 3 and 3.1, both produces the same result, but on EF Core 2.2 it works correctly.
Can you please check it?