|
|
I updated EF5 to EF 6 none of the Async extension methods are there ie: SaveChangesAsync()
dose not exist
|
|
|
|
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.
|
|
Developer
Feb 3 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.
|
|
|
|
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.
|
|