C#数据库应用

发布于 2024-09-16 23:45:27 字数 299 浏览 3 评论 0原文

这是我的第一个数据库应用程序。我正在使用 SQLite 和 Visual Studio。我已添加数据库,但如何存储和检索其中的信息?我使用 System.Data.SQLite 作为 .NET 包装器。

包装器显然为我提供了创建连接和执行查询的方法,但是有没有更简单的方法来做到这一点?是否有其他可用的库可以使其变得更容易?

如果没有更简单的方法,有人可以给我指出一个像样的 SQLite(或一般 SQL)教程吗?主要是关于如何有效地构建表以及如何编写查询来存储和检索数据的教程,特别是在可能的情况下使用此包装器在 C# 中。

谢谢你!

This is my first application with a database. I'm using SQLite and Visual Studio. I have the database added, but how do I store and retrieve information from it? I'm using System.Data.SQLite as the .NET wrapper.

The wrapper obviously provides me with methods to create connections and execute queries, but is there an easier way to do this? Are there other libraries available that would make it any easier?

If there is no easier way, could somebody please point me in the direction of a decent tutorial for SQLite (or SQL in general)? Mostly a tutorial for how to structure my tables efficiently and how to write queries to store and retrieve data, specifically in C# with this wrapper if possible.

Thank you!

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

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

发布评论

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

评论(3

杀手六號 2024-09-23 23:45:28

如果没有更简单的方法,可以
有人请指出我
一个像样的教程的方向
SQLite(或一般的 SQL)?

http://sqlzoo.net/

If there is no easier way, could
somebody please point me in the
direction of a decent tutorial for
SQLite (or SQL in general)?

http://sqlzoo.net/

自此以后,行同陌路 2024-09-23 23:45:28

这里有一个关于 SQL Lite 的教程 http://www.eggheadcafe.com/articles/20040714。 asp 与 ado.net。

There is a tutorial on SQL Lite here http://www.eggheadcafe.com/articles/20040714.asp with ado.net.

北渚 2024-09-23 23:45:27

System.Data.Sqlite 包含一个在 Visual Studio 中启用设计时支持的选项,以便您可以使用服务器资源管理器在 IDE 中查看 Sqlite 数据库。

另一个有用的工具是免费的 Sqlite2009 Pro,位于 http://osenxpsuite.net/?xp=3& ;uid=管理工具

您还应该查看 System.Data.Sqlite 帮助文件,其中作者讨论了事务的重要性。他有一个很好的示例,还展示了如何使用 using 语句来创建命令和事务。

System.Data.Sqlite includes an option to enable Design-Time support in Visual Studio so you can use Server Explorer to view your Sqlite database within the IDE.

Another helpful tool is the free Sqlite2009 Pro at http://osenxpsuite.net/?xp=3&uid=managementtools.

You should also take a look at the System.Data.Sqlite helpfile where the author discusses the importance of transactions. He has a nice example that also shows how to use the using statement to create commands and transactions.

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