简体   繁体   English

用于 MS Access 数据库的 LINQ - C#

[英]LINQ for use with MS Access Database - C#

Does anyone know if you can use LINQ techniques for querying a Microsoft Access database?有谁知道您是否可以使用 LINQ 技术来查询 Microsoft Access 数据库? In my online searches for this question, I have gotten mixed reviews.在我对这个问题的在线搜索中,我得到了褒贬不一的评价。 Some have said it's 'sort of possible' while others say LINQ can only be used with an SQL server database.有人说这是“可能的”,而其他人则说 LINQ 只能与 SQL 服务器数据库一起使用。

Does anyone know the definitive answer on this?有谁知道这方面的最终答案?

LINQtoSQL can only be used with a SQL Database. LINQtoSQL 只能与 SQL 数据库一起使用。

Entity Framework can work with SQL or Access.实体框架可以与 SQL 或 Access 一起使用。 LINQtoEntities can work with the Entity Framework. LINQtoEntities 可以与实体框架一起使用。

General LINQ methods can work with IEnumerables regardless of how they were populated.常规 LINQ 方法可以与 IEnumerables 一起使用,而不管它们是如何填充的。

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

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