Page 1 of 1

entity framework 6 async support

Posted: Thu 31 Oct 2013 19:00
by vonbrana
I have recently set up an entity framework db context using dotconnect for Oracle version 8.0.17 and entity framework 6 and .net framework 4.5.

I was thinking I would be able to use the new async extension methods that are part of EF6.

The EF context itself is up and working.

But none of the async extension methods (such as ToListAsync() ) seem to be available, just the old synch methods.

Is there something I am doing wrong? I looked on the form for threads on async, but they are all over a year old.

Could you confirm for me whether async methods are available with dot connect version 8.x.
And if so, what do I need to do to use them?

Re: entity framework 6 async support

Posted: Mon 04 Nov 2013 17:32
by Shalex
Please make sure that the target framework of your project is .NET 4.5. Reinstall EntityFramework.dll v6 after this.

Re: entity framework 6 async support

Posted: Tue 05 Nov 2013 15:17
by vonbrana
Thanks for the help. I did the update but the methods still did not show up.
But I then added the using statement

using System.Data.Entity;

and then the methods were there.

This is great, async with EF!