简体   繁体   中英

Read CRM 2011 data with LINQ in Silverlight

I looking for a way to query the CRM 2011 database with from a Silverlight client. Something like LINQ-to-CRM but for 2011 and Silverlight. I googled a lot but to no avail. I know it is possible with the "normal" SDK, but with Silverlight? Is there a way to do this?

Best, Rocko

CRM 2011 exposes its own WCF data service which it calls the ODATA service. You can query this from client code (eg Javascript or SilverLight), and there should be examples of this in the SDK.

Download the SDK from here , and look in this folder: sdk\\samplecode\\cs\\silverlight\\crmodatasilverlight

I know this isn't 'LINQ to CRM' as such but it's perfectly adequate. Otherwise, you could look into Dynamic Entities as a method of returning data, as this would let you send LINQ queries; see here .

最好的选择是创建一个WCF服务来提供数据(甚至可以是ado.net服务),然后从您的Silverlight应用程序中引用WCF服务。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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