EntityFramework (6) and async ( waitingForActivation)?
问题 I've downloaded EF6 ( in order to use async ) So I wrote this simple method : public async Task<List<int>> MyasyncMethod() { var locations = await MyDumpEntities.AgeGroups.Select(f=>f.endYear).ToListAsync(); return locations; } ...Later... DumpEntities1 MyDumpEntities = new DumpEntities1(); var data = MyDumpEntities.AgeGroups.ToListAsync(); MyasyncMethod().ContinueWith(s => { Response.Write("f"); }); MyDumpEntities.Dispose(); But I don't see anything on the screen and when I inspect data I