DbLinq and Mono 2.4: Working Together?

可紊 提交于 2019-12-24 07:43:32

问题


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

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

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

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.


回答1:


I'd avoid using DBLinq for production code... many of Linq-To-SQL's features aren't implemented, and walking through the source code shows a low level of maturity... many of the methods are not implemented or marked as "unterminated".

...you've been warned!




回答2:


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

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.

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.




回答3:


Mono 2.6 will include for the first time a preview of DbLinq with Mono. You can take it out for a spin today if you install DbLinq on your own side-by-side with your current Mono setup.



来源:https://stackoverflow.com/questions/1455064/dblinq-and-mono-2-4-working-together

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!