Reputation: 257
Is there documentation as how to install npgsql supporting EF6 in asp.net 5 enviroment ?
Or an example?
Upvotes: 0
Views: 174
Reputation: 26813
This blog post goes over using EF6 with ASP.NET 5. http://blog.tonysneed.com/2016/01/22/ef6-asp-net-core-mvc6/ In theory you just need to use https://www.nuget.org/packages/Npgsql.EntityFramework/.
Use caution howerver: EF6 does not (and will not) support .NET Core, only the full .NET Framework. EF Core is a new version of EF, designed to support ASP.NET Core on .NET Core. Npgsql has support for EF Core and is available here: https://www.nuget.org/packages/EntityFramework7.Npgsql/ See docs here: http://www.npgsql.org/doc/ef7.html
(I assume at some point this package will be renamed from EF7.Npgsql to EFCore.Npgsql... see https://github.com/npgsql/npgsql/issues/966)
Upvotes: 1