Monday, 12 March 2007

Let’s be honest about it: getting to know Genome is a non-trivial undertaking. It may seem downright daunting. I want to share with you some of the things I did, hoping that someone might benefit from my experiences.

First and foremost: watch the videos! There are three videos so far, and I’m told that a fourth one is in the making. The videos contain lots and lots of information, showing how to reverse engineer an existing database, how to make queries in OQL and C#, how to do optimizations, how to add business logic to persistent classes, and lots more. Even though I wish there were more and shorter videos, it’s definitely the videos that helped me the most.

When you install Genome, you also get a number of sample projects. The two most interesting (to me) are the Quickstart and the Tutorial series. Both series highlight some basic scenarios of increasing complexity. Especially the Quickstart series was helpful to me, because it shows how to use the Genome Data Source from the Genome Web Extensions. The Genome Data Source acts just like a regular ASP.NET Data Source, so I can easily show and change my data using a standard GridView and other Data Source-aware controls. There’s nothing like seeing you your data respond to your input and commands to bolster your Genome-confidence.

What I missed, however, is a catalogue of simple examples. Microsoft published “101 Linq Samples”, and I would very much like to see “101 Genome Samples”.

Last but not least: after going through all the materials provided by Genome, I adapted one of my pet projects. I replaced the data access layer with Genome code and left everything else alone. By switching out just a single part of the project, I was able to get a good feeling for the differences and subtleties of Genome.

This is how I got started with Genome. If you’re new to Genome, you may want to try my approach. If it works for you, great. If it doesn’t and you find another way of approaching Genome, we would like to hear about it!

Posted by Dirk.