c# - Entity Framework Designer First get navigation property as Tasks -
the task pattern says in order consistent has async or not async. by using entity framework designer first can achieve quite var course = await db.courses.findasync(courseid); courses dbset generated entity framework , therefore has async methods. problem if add navigation property class, latter not dbset , not contain async method definition. as example, if add navigation property students table, created virtual icollection students means cannot use async methods. want having entity framework automatically generate task<> in order able await navigation properties. is possible? goal achieve this: var course = await db.courses.findasync(courseid); var student = await course.students.findasync(studentid); while @ moment options mixing async/notasync code: var course = await db.courses.findasync(courseid); var student = course.students.first(p => p.id = studentid); or not using navigation property @ all: var course = await db.courses.findasync(courseid); v...