Skip to content

Wrappers with lazy loading supports and code generation for Microsoft Xrm Sdk without using deprecated Microsoft.Xrm.Client.

Notifications You must be signed in to change notification settings

ZapTechnology/XrmLazyLoading

Repository files navigation

XrmLazyLoading

Wrappers with lazy loading supports and code generation for Microsoft Xrm Sdk without using deprecated Microsoft.Xrm.Client.

To use it, build the solution, copy XrmLazyLoading.CodeGeneration.dll and XrmLazyLoading.dll to where your CrmSvcUtil.exe is located. Then run the CrmSvcUtil.exe as usual but with the codeCustomization parameter like this:

CrmSvcUtil.exe /codeCustomization:"XrmLazyLoading.CodeGeneration.CodeCustomization,XrmLazyLoading.CodeGeneration" ...

The generated class would be almost identical to the one without the codeCustomization, except the base class for entities is now XrmLazyLoading.EntityWrapper instead of Microsoft.Xrm.Sdk.Entity and the base class for service context is XrmLazyLoading.OrganizationServiceContextWrapper instead of Microsoft.Xrm.Sdk.Client.OrganizationServiceContext. The wrapper classes supports the same lazy loading as the old CrmOrganizationServiceContext and CrmEntity classes from Microsoft.Xrm.Client.dll but much lighter weighted.

About

Wrappers with lazy loading supports and code generation for Microsoft Xrm Sdk without using deprecated Microsoft.Xrm.Client.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages