WPF 应用程序的数据库功能:SQLite、SQL CE 还是其他? [英] Database functionality with WPF app: SQLite, SQL CE, other?

查看:44
本文介绍了WPF 应用程序的数据库功能:SQLite、SQL CE 还是其他?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想扩展具有数据库功能的 WPF 应用程序.您建议使用哪种数据库引擎,为什么?SQLite、SQL CE 还是其他?

I want to extend a WPF application with database functionality. Which database engine would you suggest and why? SQLite, SQL CE, other?

推荐答案

根据使用的应用程序,我建议使用 SQL Lite,因为它不需要您安装任何其他软件(SQLCE 或 Express 等通常需要单独安装).

Depending on the applications use, I would recommend using SQL Lite because it doesn't require you to install any other software (SQL CE or Express, etc. usually would require a separate install).

本文底部的提供者链接列出了 SQL Lite 最重要的好处:

A list of the most important benefits for SQL Lite from the provider link at the bottom of this post:

SQLite 是一个小型的 C 库实现了一个独立的,可嵌入的、零配置的 SQL数据库引擎.功能包括:

SQLite is a small C library that implements a self-contained, embeddable, zero-configuration SQL database engine. Features include:

  • 零配置 - 无需设置或需要管理.
  • 实现大部分 SQL92.(特点不支持)
  • 一个完整的数据库存储在一个单个磁盘文件.
  • 数据库文件可以自由共享不同字节的机器之间订单.
  • 支持高达 2 TB 的数据库(2^41 字节)大小.
  • 代码占用量小:小于 30KC 代码行数,小于 250KB代码空间(i486 上的 gcc)
  • 比流行的客户端/服务器更快最常见的数据库引擎操作.
  • 简单易用的 API.
  • 自包含:无外部依赖项.
  • 来源属于公共领域.用于任何目的.

由于您使用的是 WPF,我可以假设您至少使用 .NET 3.0.然后,我建议使用 .NET 3.5 SP1(与 .NET 3.5 大小相同,但包括一系列性能改进),其中包括 LINQ.

Since you're using WPF I can assume you're using at least .NET 3.0. I would then recommend going to .NET 3.5 SP1 (sames size as .NET 3.5 but includes a bunch of performance improvements) which includes LINQ.

但是,当使用 SQLite 时,您可能希望使用以下应提供 LINQ 支持的 SQLite 提供程序:一个开源 ADOSQLite 数据库引擎的 .NET 提供程序

When using SQLite, however, you would want to use the following SQLite Provider which should provide LINQ support: An open source ADO.NET provider for the SQLite database engine

这篇关于WPF 应用程序的数据库功能:SQLite、SQL CE 还是其他?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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