Johan Küstner has created this utility to extend the functionality of CrmSvcUtil.exe and the Generate Wrapper functionality within Crm Explorer in Visual Studio when the Dynamics CRM Developer Toolkit is installed. This utility adds the ability to generate the Enum for Option Sets and to generate Option Set Value Properties as well as State and Status Properties. This utility also removes the Publisher Prefix when naming Classes, Fields and Properties and uses the Display Name instead. All spaces are removed from the Display Name. This utility also enables generation of specific Entities only, using the includedEntities Key in CrmSvcUtil.exe.config. The default is *. The CrmSvcUtil.exe.config installed by this utility includes theservicecontextname Key with a Value of XrmServiceContext. see https://msdn.microsoft.com/en-us/library/gg327844.aspx?f=255&MSPPError=-2147217396 for more details on parameters forCrmSvcUtil.exe. The main component of the utility is CrmDeveloperToolkitExtender.CrmSvcUtil.dll. The utility files are installed to %ProgramFiles(x86)%\Microsoft Visual Studio XX.X\Common7\IDE\Extensions\Microsoft\Dynamics CRM XXXX Developer Tools\1.0, whereXX.X is the version of Visual Studio and XXXX is the version of Dynamics CRM. For example, for Visual Studio 2015,XX.X is 14.0. Please note that for the Dynamics CRM Developer Toolkit that ship with the SDK of Dynamics CRM 2011 and 2013,XXXX is always 2011, except for my version of the Developer Toolkit from/vsgallery/8b4445bc-5cef-422c-9921-f52a137e3882, whereXXXX is 2016. I did originally have functionality that injected Create, Update,Delete and SetState Methods into every Entity Class. However, I decided to take this out as I now believe the best approach is for a developer to create their ownRepository using the OrganizationServiceContext. |