DbLinq和Mono 2.4:一起工作吗? [英] DbLinq and Mono 2.4: Working Together?

查看:81
本文介绍了DbLinq和Mono 2.4:一起工作吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望这是一个愚蠢的问题,确实有一个简单的解决方案,但是...

Hopefully this is a silly question and there's really a simple solution somewhere out there but...

在Mac OS X 10.5上,是否有人成功使DbLinq与Mono 2.4完美兼容?

Has anybody successfully gotten DbLinq to play nicely with Mono 2.4 on Mac OS X 10.5?

我已经准备好SQLite数据库,但是为了我的生命,我找不到sqlmetal来生成我的对象.

I've got my SQLite database ready but for the life of me, I can't find sqlmetal to generate my objects.

我猜测我可能必须下载包含sqlmetal的Mono的先前版本,进行构建和安装,然后仅在Mono 2.4上使用从该版本生成的代码...但是我希望避免使用它不惜一切代价.

I'm guessing I might have to download a previous version of Mono that included sqlmetal, build and install it, and then just use the code generated from that version on Mono 2.4...but I'm hoping to avoid it at all costs.

推荐答案

在这种情况下,使用预编译的二进制文件是行不通的.

Using the pre-compiled binary in this case just doesn't work.

要获得正确生成的DbLinq数据层,必须使用Mono附带的sqlmetal工具(但显然,不是与OS X的预编译二进制文件一起使用).您必须下拉Mono中继(以及所有依赖项)并从源代码构建Mono.

To get a properly generated DbLinq data layer, you have to use the sqlmetal tool included with Mono (but, apparently, not with the pre-compiled binaries for OS X). You have to pull down the Mono trunk (along with all the dependencies) and build Mono from the source.

一旦从源代码构建并安装了Mono,就应该拥有sqlmetal工具.生成代码后,就像包含生成的* .cs文件并导入Mono.Data.Sqlite一样简单.

Once you build and install Mono from source, you should have the sqlmetal tool. Once you generate your code, it's as easy as including the generated *.cs file and importing Mono.Data.Sqlite.

这篇关于DbLinq和Mono 2.4:一起工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆