如何在实体框架中使用Postgresql(在Visual Studio 2012中)?

编程入门 行业动态 更新时间:2024-10-27 22:25:59
本文介绍了如何在实体框架中使用Postgresql(在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/ Entity framework also works with Npgsql - .Net Data Provider for Postgresql. A tutorial on how to set it up can be found here: npgsql.projects.postgresql/

更多推荐

如何在实体框架中使用Postgresql(在Visual Studio 2012中)?

本文发布于:2023-10-26 11:10:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1529960.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:实体   框架   如何在   Postgresql   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!