Massive .NET ORM 可以在 Linux 上的 Mono 上工作吗?

发布于 2024-12-12 05:51:01 字数 179 浏览 0 评论 0原文

Massive .NET ORM 可以在 Mono 适用于 Linux?如果是的话需要设置什么?

Can the Massive .NET ORM work on Mono for Linux? If so what would need to be setup?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

空气里的味道 2024-12-19 05:51:01

我能够在 Mono 2.6.10 上构建 Massive.Sqlite 并进行选择、插入、更新和删除工作。我还没有尝试过其他任何东西。您可以在此处查看有关如何执行此操作的示例:

https://github.com/robconery/massive

需要注意的几点是,您必须更改两行,以便它们与 Mono.Data.Sqlite 而不是 System.Data.Sqlite 一起使用。

替换

using System.Data.SQLite;

using Mono.Data.SQLite;

我还必须将第 128 行从: 更改

var _providerName = "System.Data.SQLite";

var _providerName = "Mono.Data.SQLite";

如果您使用 MonoDevelop 并创建一个新项目,您需要将其设置为使用 .NET 4 配置文件,然后将以下引用添加到您的项目:

Microsoft.CSharp
Mono.Data.Sqlite
System.Configuration

I was able to build Massive.Sqlite on Mono 2.6.10 and get selects, inserts, updates and deletes working. I haven't tried anything else yet. You can look at the examples on how to do that stuff here:

https://github.com/robconery/massive

A couple points to note are that you have to change two lines so they work with Mono.Data.Sqlite instead of System.Data.Sqlite.

Replace

using System.Data.SQLite;

with

using Mono.Data.SQLite;

I also had to change line 128 from:

var _providerName = "System.Data.SQLite";

to

var _providerName = "Mono.Data.SQLite";

If you are using MonoDevelop and create a new project you'll need to set it to use the .NET 4 profile and then add the following references to your project:

Microsoft.CSharp
Mono.Data.Sqlite
System.Configuration
蘸点软妹酱 2024-12-19 05:51:01

尝试使用 Vega https://github.com/aadreja/vega。最好的之一最快的.net ORM,具有企业功能。它同时支持 .net core 和 .net,并且在 Linux 上运行起来就像一个魅力。

Try Vega https://github.com/aadreja/vega. One of the best & fastest .net ORM with enterprise features. It supports both .net core and .net and works like a charm on linux.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文