Following up my previous webcast about Data, Metadata and Code Generation, which can be watched online in any time, I wanted to share the resources (pptx and source code) that I showed during the event. In addition, I want to take this time to explain few more details.
On one side, we were talking about how to consume the CRM services to handle data and metadata based on three tools: Visual Studio Service Reference, CrmSvcUtil.exe and DataSvcUtil.exe. As summary, I prepared the next table with the possible cases to evaluate:
Go to this link, and download the VS2010 solution. As you can see below, you will find four projects according to the tool and the scenario: Early-Bound, Late-Bound and Metadata.
From the other side, we saw how to extend the tool CrmSvcUtil.exe to customise the code generation process following the next interfaces (these interfaces are defined inside of CrmSvcUtil.exe):
Go to this link and download the VS2010 solution where you can find three projects:
CrmSvcUtil project is the source code of CrmSvcUtil.exe, which has been reflected for debugging and educational propose . You can see a new App.config with the corresponding parameters. CodeDomXrmServices is the project that contains the extensions. In this case, we have extended ICodeWriterFilterService to filter the entities, as well as to allow the generation of Picklist and Status. Finally, TestCrmSvcUtil is a simple project to test the result generated by CrmSvcUtil.
I hope you find this helpful