在asp.net 5中使用带有EF6的npgsql

时间:2022-09-18 08:33:16

Is there documentation as how to install npgsql supporting EF6 in asp.net 5 enviroment ?

有没有关于如何在asp.net 5环境中安装支持EF6的npgsql的文档?

Or an example?

还是一个例子?

1 个解决方案

#1


1  

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/.

这篇博文将使用EF6和ASP.NET 5进行讨论.http://blog.tonysneed.com/2016/01/22/ef6-asp-net-core-mvc6/理论上你只需要使用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

谨慎使用:EF6不支持(也不支持).NET Core,只支持完整的.NET Framework。 EF Core是EF的新版本,旨在支持.NET Core上的ASP.NET Core。 Npgsql支持EF Core,可在此处获取:https://www.nuget.org/packages/EntityFramework7.Npgsql/请参阅此处的文档: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)

(我假设在某些时候这个包将从EF7.Npgsql重命名为EFCore.Npgsql ...请参阅https://github.com/npgsql/npgsql/issues/966)

#1


1  

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/.

这篇博文将使用EF6和ASP.NET 5进行讨论.http://blog.tonysneed.com/2016/01/22/ef6-asp-net-core-mvc6/理论上你只需要使用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

谨慎使用:EF6不支持(也不支持).NET Core,只支持完整的.NET Framework。 EF Core是EF的新版本,旨在支持.NET Core上的ASP.NET Core。 Npgsql支持EF Core,可在此处获取:https://www.nuget.org/packages/EntityFramework7.Npgsql/请参阅此处的文档: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)

(我假设在某些时候这个包将从EF7.Npgsql重命名为EFCore.Npgsql ...请参阅https://github.com/npgsql/npgsql/issues/966)