[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:

image

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.

image

image

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):

ExtendCrmSvcUtilTable

Go to this link and download the VS2010 solution where you can find three projects:

image

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

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: