如何在实体框架中使用Postgresql(在Visual Studio 2012中)? [英] How Can I Use Postgresql With Entity Framework (In Visual Studio 2012) ?
问题描述
我想在我的年龄使用树视图,以显示类别,子类别和子子类别。
现在我手动输入类别表(postgre数据库,模式=类别,表name = allcategory)。
所以我想使用实体框架工作在树状视图中显示这些信息。
所以你可以给出任何方式,我们如何连接PostgreSql?
(我知道如何连接SqlServer与实体框架工作)。
但是当我尝试为postgresql添加连接时,它没有显示postgresql的任何提供程序...
谢谢。
I want to use tree view in my age , to show category , sub category and sub - sub category .
Now I did manually entry for category table (postgre database, schema= category , table name = allcategory).
so i wnat to display these information in tree view using entity frame work.
so can u give any way , how we can connect PostgreSql ?
(i know how to connect SqlServer with entity frame work).
But when i try to add connection for postgresql , it did not show any provider for postgresql...
Thank you.
推荐答案
实体框架也适用于Postgresql的Npgsql - .Net Data Provider。有关如何设置它的教程可以在这里找到:http://npgsql.projects.postgresql.org/
Entity framework also works with Npgsql - .Net Data Provider for Postgresql. A tutorial on how to set it up can be found here: http://npgsql.projects.postgresql.org/
这篇关于如何在实体框架中使用Postgresql(在Visual Studio 2012中)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!