Where do I find the Async methods in EF 6

Topics: EF Runtime, General
Feb 3, 2013 at 5:04 AM
I updated EF5 to EF 6 none of the Async extension methods are there ie: SaveChangesAsync()
dose not exist
Feb 3, 2013 at 10:07 AM
As far as I can tell (I looked at the assemblies with JustDecompile), they only exist in .NET 4.5 and not in .NET 4.0, and a lot of them aren't extension-methods, but actual methods. The extension-methods (ToListAsync, ToArrayAsync, etc) are found in System.Data.Entity.
Feb 3, 2013 at 6:56 PM
Async methods are not available when you target .NET Framework 4 since .NET Framework 4 does not natively support async. You need to have EF6 and target .NET Framework 4.5 to get the asyn support in EF.
Feb 6, 2013 at 4:43 AM
Hi thanks for getting back to me I am targeting 4.5 and using EF 6 that is what is puzzling it is compiles against v4.0.30319
when I run Install-Package EntityFramework -Pre
'EntityFramework 6.0.0-alpha2' already installed.
when I try to uninstall it I get
Unable to uninstall 'EntityFramework 6.0.0-alpha2' because 'Microsoft.AspNet.Membership.OpenAuth 1.0.0, Microsoft.AspNet.Providers.Core 1.2' depend(s) on it.