简体   繁体   English

C# 是否有某种自己的客户端数据库实现

[英]Does C# have some kind of it's own clientside database implemention

Does C# have it's own kind of database system like Access/ADO alternative. C# 是否有自己的数据库系统,如 Access/ADO 替代方案。

I would like to make sure it's in the .NET framework no external libraries.我想确保它在 .NET 框架中没有外部库。

If no which one would you recommend I should use for a compact, small and lightweight database.如果没有,您会推荐哪一个来构建紧凑、小型和轻量级的数据库。

It does not, C# is just the language.它没有,C# 只是语言。 The .NET framework does not directly either. .NET 框架也不直接。

SQL Server Express is one option (though probably not lightweight enough): http://www.microsoft.com/sqlserver/en/us/editions/express.aspx SQL Server Express 是一种选择(尽管可能不够轻量级): http://www.microsoft.com/sqlserver/en/us/editions/express.aspx

SQL Server CE is better: http://www.microsoft.com/sqlserver/en/us/editions/compact.aspx SQL 服务器CE比较好: http://www.microsoft.com/sqlserver/en/us/editions/compact.aspx

...as is SQLlite for .NET: http://sqlite.phxsoftware.com/ ...与 .NET 的 SQLlite 一样: http://sqlite.phxsoftware.com/

If you don't need relational features at all and the data is small enough, you could use XML storage directly.如果你根本不需要关系特性,而且数据足够小,你可以直接使用 XML 存储。

A combination of Entity Framework and MS SQL Server Compact that ships with Windows 7 and is a free database engine is an ideal, almost "embedded" into.Net data solution for your purpose. Entity FrameworkMS SQL Server Compact的组合,随 Windows 7 一起提供,是一个免费的数据库引擎,是一个理想的、几乎“嵌入”到.Net 数据解决方案中。

You may like to take a looks at Jet Blue/ESENT which is a transactional, indexable ISAM database engine thats shipped with every version of windows since win2k.您可能想看看Jet Blue/ESENT ,它是一个事务性、可索引的 ISAM 数据库引擎,自 win2k 以来随 windows 的每个版本一起提供。 There are C#/LINQ bindings here .这里有 C#/LINQ 绑定。

I think C# and MS-SQL Server makes the ideal pair for most of the solutions.我认为 C# 和 MS-SQL Server 是大多数解决方案的理想组合。 But if you are looking for cheaper solution you can choose MySQL.但如果您正在寻找更便宜的解决方案,您可以选择 MySQL。

SQLite is a popular choice for small-footprint lightweight minimally invasive installations and there's a robust data provider for .NET. SQLite 是小型轻量级微创安装的流行选择,并且有一个强大的 .NET 数据提供程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM