实体框架非SQL数据源 [英] Entity framework non SQL data source

查看:62
本文介绍了实体框架非SQL数据源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!

我想对非SQL数据源使用实体框架,例如WMI。

I would like to use 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 support a wider variety of sources.

HTH,

  Noam

HTH,
 Noam


这篇关于实体框架非SQL数据源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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