Hello everyone,
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 manner?
If so, how can this be done?
Hello everyone,
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 manner?
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.