xamarinxamarin.iosxamarin.androiduwpentity-framework-core

Is it possible to use Entity Framework Core in Xamarin cross-platform projects?


I'm evaluating Xamarin for a new project that will be targeting different platforms (iOS, Android, UWP).

When I add the NuGet package to my PCL project, I get the following error :

Impossible d’installer le package « Microsoft.EntityFrameworkCore 1.0.1 ». Vous essayez d’installer ce package dans un projet ciblant « .NETPortable,Version=v4.5,Profile=Profile111 », mais le package ne contient aucun fichier de contenu ou référence d’assembly compatible avec cette infrastructure.

So I guess that EF Core is not supported by Xamarin.

Many thanks in advance


Solution

  • This is a current action item for the EF team:

    https://github.com/aspnet/EntityFramework/issues/4269

    As of 10 days ago there is a task to see if this will be supported:

    https://github.com/aspnet/EntityFramework/issues/4269#issuecomment-256133319

    Now that Xamarin supports netstandard we are going to do another round of testing and see if we are ready to have Xamarin be one of our supported scenarios. Once we've looked at this we can make a call if we call it supported for 1.1. I'm going to start by porting a sample app I did back in the beta5 days.