Sto ancora testando questo fuori (su dnx-coreclr-win-x64.1.0.0-rc2-16177
al momento), ma hanno fatto molti progressi da quando @bricelam ha risposto. Ora hanno qualche EF7 docs tra cui alcuni sulla CoreCLR support
Ecco la parte del mio project.json:
"dependencies": {
"EntityFramework.Commands": "7.0.0-rc2-*",
"EntityFramework.Core": "7.0.0-rc2-*",
"EntityFramework.Relational": "7.0.0-rc2-*",
"EntityFramework7.Npgsql": "3.1.0-rc1-2",
},
"frameworks": {
"dnxcore50": {}
}
Si avrà probabilmente bisogno di aggiungere al vostro
https://www.myget.org/F/npgsql-unstable/api/v3/index.json NuGet feed al fine di tirare quel pacchetto.
EDIT: ora specificare una versione esatta di EntityFramework7.Npgsql": "3.1.0-rc1-2"
e utilizzare solo questo feed nella mia NuGet.config:
https://www.myget.org/F/aspnetrelease/api/v3/index.json
EDIT: Questo è tutto ora disponibile in https://api.nuget.org/v3/index.json
In avvio. cs:
public void ConfigureServices(IServiceCollection services)
{
services.AddEntityFramework()
.AddNpgsql()
.AddDbContext<YourDbContext>(options => options.UseNpgsql("your connectionString"))
;
}
C'era l'implementazione Redis e SqlLite per beta1, se si desidera mantenere l'implementazione Redis. Presto sarà pronto per la beta3. controlla il mio gitub https://github.com/aguacongas/EntityFramework. Oppure puoi implementare la tua implementazione di PostgreSql ... –
My EntityFramework.Redis è disponibile su myget per beta3 aggiungi https://www.myget.org/F/chatle/api/v2/ nei tuoi feed NuGet –