SQLite DB 允许的最大大小是多少?我可以使用 PetaPoco 作为 ORM 吗?

发布于 2024-11-28 18:22:30 字数 157 浏览 6 评论 0原文

Windows 窗体应用程序中 SQLite 数据库允许的最大大小是多少?
我可以使用 PetaPoco 作为 ORM,或者您可以建议类似的 ORM 吗?

What is the maximum allowed size for a SQLite database in a Windows Forms application?
Can I use PetaPoco as an ORM, or can you suggest a similar ORM?

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

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

发布评论

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

评论(3

唔猫 2024-12-05 18:22:30

关于您的最大大小问题,限制约为 14 TB (http://www.sqlite.org/limits.html )。

我认为您可以使用 PetaPoco,因为可以在 PetaPoco.cs 中找到以下行:

    enum DBType
    {
        SqlServer,
        SqlServerCE,
        MySql,
        PostgreSQL,
        Oracle,
        SQLite
    }

Concerning your max size question the limit is about 14 terabytes (http://www.sqlite.org/limits.html).

And I think you can use PetaPoco, since this lines can be found in PetaPoco.cs:

    enum DBType
    {
        SqlServer,
        SqlServerCE,
        MySql,
        PostgreSQL,
        Oracle,
        SQLite
    }
梦与时光遇 2024-12-05 18:22:30

您可以使用 PetaPoco。当前版本3.0.4支持SqlLite。

You can use PetaPoco. The current version 3.0.4 supports SqlLite.

意中人 2024-12-05 18:22:30

关于您的 PetaPoco 问题:

不,您不能使用 PetaPoco,因为它不支持 SQLite。
引用自主页

适用于 SQL Server、SQL Server CE、MySQL、PostgreSQL 和 Oracle。

如果你不想使用像 NHibernate (支持 SQLite)这样成熟的 ORM,还有其他 Micro- ORM,例如 PetaPoco:

Dapper 完全与数据库无关,Massive 明确支持 SQLite

Concerning your PetaPoco question:

No, you can't use PetaPoco because it doesn't support SQLite.
Quote from the main page:

Works with SQL Server, SQL Server CE, MySQL, PostgreSQL and Oracle.

If you don't want to usw a full-blown ORM like NHibernate (which suppports SQLite), there are other Micro-ORMs like PetaPoco:

Dapper is completely database agnostic, Massive explicitly supports SQLite.

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