I think this one is no longer working?! Can you please fix?
http://devnet.kentico.com/docs/devguide/index.html?data_layer_code_examples.htm
I have v7.0 and just migrated some codes from 7.0RC and the above example will generate an error and won't compile:
e.g.
SimpleDataClass theObj = new SimpleDataClass("cms.custom_table", 10);
SimpleDataClass userObj = new SimpleDataClass("cms.user", 10);