【问题标题】:SqlEntityConnection can't find edmgen.exe when compiling on mac osx with mono在 mac osx 上使用 mono 编译时,SqlEntityConnection 找不到 edmgen.exe
【发布时间】:2015-07-04 08:53:30
【问题描述】:

我有一个使用SqlEntityConnection 类型提供程序的非常简单的代码。

基本上是这样的

open System.Data.Linq
open System.Data.Entity
open Microsoft.FSharp.Data.TypeProviders

type private EntityConnection = SqlEntityConnection<ConnectionString="ConnectionString",
                                                Pluralize = true>

在 Windows 上编译得很好,但是当我尝试在 Mac OSX 上编译它时,它会因为这个错误而失败

The type provider 'Microsoft.FSharp.Data.TypeProviders.DesignTime.DataProviders' reported an error: Error reading schema. The required tool '/Library/Frameworks/Mono.framework/Versions/4.0.1/lib/mono/4.5/edmgen.exe' could not be found.

我到处找,似乎在任何地方都找不到edmgen.exe。它应该与单声道一起安装吗?我安装了 MDK 4.0.1.44,但edmgen.exe 不存在。我错过了什么?

【问题讨论】:

    标签: entity-framework f# mono type-providers


    【解决方案1】:

    经过大量试验,包括从 Windows 机器复制 edmgen.exe 以及所有 EntityFramework dll,它仍然无法正常工作。这个特殊的 TypeProvider 与 .NET 框架附带的一个非常旧版本的 EntityFramework 相关联,并且不适用于 Mono。

    我尝试了SQLProvider,它在 Mono 上编译得很好,但确实有问题,尤其是在查询中使用 groupbycount。无论如何,我放弃了尝试在 Mono 上运行这个东西。一旦 EntityFramework 7 发布,我可能会再试一次,因为它将正式支持 Mono。

    【讨论】:

    • 从那以后你有没有找到合理的解决方案?
    猜你喜欢
    • 1970-01-01
    • 2014-06-20
    • 2012-01-17
    • 1970-01-01
    • 2012-02-17
    • 1970-01-01
    • 1970-01-01
    • 2016-08-19
    • 1970-01-01
    相关资源
    最近更新 更多