本文介绍了实体框架非SQL数据源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好!
我想对非SQL数据源使用实体框架,例如WMI。
I would like touse entity framework against non SQL data source, in example WMI.
这可能吗可以吗?
/提前致谢!
推荐答案
为了让EF成为能够与数据源通信,必须提供EF ADO.NET Provider。由于这些设计用于与关系存储进行交互,因此非关系存储的提供商不太可能发生。
In order for the EF to be able to talk to a data source, an EF ADO.NET Provider must be available. Since these are designed for interacting with relational stores, providers for non-relational stores are not likely to happen.
对于像WMI这样的商店,最好的办法是看看你是否可以使用WCF数据服务,具有更简单的提供者模型。其中一个旨在支持更多种类的来源。
For stores like WMI, your best bet is to see if you can use WCF Data Services, which has a simpler provider model. And one designed to supporta wider variety of sources.
HTH, Noam
HTH, Noam
更多推荐
实体框架非SQL数据源
发布评论