如何在实体数据模型向导中添加postgres数据源..? [英] How to add postgres data source in entity data model wizard..?

查看:142
本文介绍了如何在实体数据模型向导中添加postgres数据源..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被困在项目中间。我在实体数据模型向导中添加数据源时遇到问题



导航路径:::::



解决方案资源管理器:模型(文件夹):添加:新项目:ADO.NET实体数据模型:EF Designer来自数据库:新连接



现在在新建连接中我想使用Postgresql数据源连接我的postgresql数据库,但我只有SQL Server数据源选项,任何人都知道如何处理这个错误.. ??



注意:我已经通过NuGet添加了Npgsql,entityframework5.Npgsql。



我尝试了什么:



我已经在解决方案资源管理器中添加了它我有postgresql data sourcce选项那么为什么它不在这里?

I am stuck in the middle of a project. I am having an issue with adding the data source in "Entity Data Model Wizard"

Navigation Path:::::

Solution Explorer : Models(Folder): Add : New Item : ADO.NET Entity Data Model : EF Designer From Database : New Connection

Now here in "New Connection" I want to connect my postgresql database using Postgresql Datasource but I have only SQL Server datasource option there, Anybody know how to deal with this ERROR..??

Note: I have added Npgsql, entityframework5.Npgsql through NuGet.

What I have tried:

I have added it in Solution Explorer I have postgresql data sourcce option there then why it is not present here??

推荐答案

我不是实体框架的用户,但也许这个答案会有所帮助:

c# - Postgresql和实体框架 - 堆栈溢出 [ ^ ]



可能需要:
I'm not a user of Entity Framework, but maybe this answer will help:
c# - Postgresql and Entity Framework - Stack Overflow[^]

Could be that you need:
<provider invariantName="Npgsql" type="Npgsql.NpgsqlServices, EntityFramework5.Npgsql" />


这篇关于如何在实体数据模型向导中添加postgres数据源..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆