Hi
Is there a way of generating the service context without using the CrmSvcUtil.exe in a command prompt?
I am using Generate Wrapper from the CRM Explorer in Visual Studio to create the Entity.cs file so I can use early bound types in my plugin.
I would like to user a Linq query in my plugin so I need the Organisation Service Context. When I create the Early Bound entity file with CrmSvcUtil.exe in the command prompt there is a switch to name the Service Context (/ServiceContextName) which I can then use in a Linq query. When I create the Entity.cs files for early bound types using the Generate Wrapper option no service context is created.
If it is not possible to create the appropriate code using Generate Wrapper to use the OrganizationServiceContext can I create an OrganizationServiceContext object in code that includes all of the entity sets for me to use in the Linq query?
I tried using (var orgContents = newOrganizationServiceContext(service)) but this does not give me the appropriate IQueryable sets
I would prefer to use Linq to query the data than Query Expressions.
thank you