[CRM 2011] Data, Metadata and Code Generation

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 Smile . 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

About Ramon Tebar

Software Engineer specialised on Microsoft Technologies with experience in large projects for different industrial sectors as developer, consultant and architect. I enjoy designing and developing software applications, it is my job and one of my hobbies. I’m interested in design patterns, new technologies and best practices. Making those part of the ALM process is a great challenge. During the last years, I have specialised in Microsoft Dynamics CRM (now Dynamics 365). I customise and extend the platform to provide tailored solutions and integrations based on service-oriented architectures and messages queuing. Motivated by community events and contributor in blogs, technical books, open source projects and forums, I have been awarded Microsoft Most Valuable Professional (MVP) on Dynamics 365 (CRM) since 2012.

Posted on April 25, 2011, in CRM 2011 and tagged , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: