If you need to use Linq Queries in plugins/workflows, you have to enable proxy types before instantiating the service object from service provider.
|
factory.GetType().GetProperty("ProxyTypesAssembly").SetValue(factory,typeof(YourCrmContext).Assembly, null);
|
|
No comments:
Post a Comment