Entity Framework 7 is currently available in beta and this article says what should it be?) You can use Entity Framework 7 in Xamarin projects.
However, when I try to install it using NuGet:
Install-Package EntityFramework.SQLite โPre
This will fail:
Install-Package : Could not install package 'EntityFramework.Sqlite 7.0.0-beta6'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile78', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. At line:1 char:1 + Install-Package EntityFramework.SQLite โPre + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Can I use the Entity Framework in a Xamarin project or will I have to stick to sqlite-net ?
Edit: As @Daniel Luberda suggested, I just tried installing the Entity Framework into a project created from the Shared Project Xamarin.Forms template, but this fails with the following error:
Install-Package : Could not install package 'System.Runtime 4.0.20-beta-23109'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v5.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. At line:1 char:1 + Install-Package EntityFramework.SQLite โPre + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Install-Package], Exception + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
The same can be said about the Windows Phone project and the iOS project.
source share