【问题标题】:How to generate edmx from postgresql database如何从 postgresql 数据库生成 edmx
【发布时间】:2013-01-31 05:32:07
【问题描述】:

我在 postgresql 中有一个数据库,我想在我的项目中使用 vs 2010(v4.0) 中的向导生成 edmx(实体框架)。

我遵循了本博客中给出的所有步骤 http://fxjr.blogspot.in/2011/05/npgsql-design-time-support-preview.html 但在生成 edmx 时我找不到 postgresql 的数据提供程序。

我也见过http://ud-csharp.blogspot.in/2010/02/entity-framework-con-postgresql.html,但没有成功。

【问题讨论】:

    标签: .net asp.net-mvc-3 entity-framework npgsql


    【解决方案1】:

    在处理了 Npgsql 生成实体对象的类似问题后,我开始研究商业选项。

    Devart 的 dotConnect for PostgreSQL Pro 让我非常幸运。文档很好,包括 1 年支持,并且它们倾向于比 Npgsql 更快地添加与新功能和 Visual Studio 版本的兼容性。

    http://www.devart.com/dotconnect/postgresql/

    【讨论】:

      【解决方案2】:

      NpgsqlDdexProvider 与 EntityFramework 5 和 6 一起使用。我已使用 Visual Studio 2015 从 Postgres 成功生成模型。

      http://www.npgsql.org/doc/ddex.html

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2016-05-13
        • 2017-03-27
        • 1970-01-01
        • 2011-11-25
        • 2013-04-30
        • 1970-01-01
        • 1970-01-01
        • 2010-09-15
        相关资源
        最近更新 更多