开发者

LINQ2Entities with MySQL on Mono

I'm trying to run a LINQ2Entities sample (MySQL connector 6.3.6) on Mono 2.8.2 (compiled from sou开发者_如何学Crce, Ubuntu 10.10). I get following error:

$mono L2EMySQL.exe
Could not load file or assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

Am I doing something wrong or is it Mono that is not supporting LINQ2Entities? If so, is there any plan to support it?


Mono does not supply an implementation of the Entity Framework, and (currently) has no plans to implement it in the near future, due to the abundance of high-quality and cross-platform ORM frameworks already in existence for the CLR. NHibernate and LINQ to SQL, for example.

(This is not speculation and was overheard in #mono coming from one of the Mono team members.)


Update 2012-10-03: Microsoft has released EF under the Apache 2.0 license (source), and the Mono project bundles it starting with version 2.11.3 (which is an alpha release at the time of this writing).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜