开发者

MSCRM: Can one convert a CrmService to a DataContext (new CRM SDK)?

开发者 https://www.devze.com 2023-01-06 12:14 出处:网络
I\'m trying to create a DataContext (a class available via the new MSCRM SDK) from an existing CrmService. Is this at all possible in a supported 开发者_如何学Cmanner?

I'm trying to create a DataContext (a class available via the new MSCRM SDK) from an existing CrmService. Is this at all possible in a supported 开发者_如何学Cmanner?

If so, how can this be done?


Are you talking about a LINQ DataContext? If so, this isn't openly supported. You could create the Linq to SQL scaffolding just like with any other database and then have access to a DataContext, but updates/inserts would be unsupported.

There are some third party tools that allow you to use LINQ to do queries.


The Advanced Developer Extensions (part of the most recent SDK release) provide an XrmDataContext class to allow querying CRM via linq.

0

精彩评论

暂无评论...
验证码 换一张
取 消