This project is read-only.

Mapping string-properties

Apr 20, 2012 at 9:38 AM


I am working with Umbraco 4.7.1 and I am trying to map the content-nodes to some autogenerated strong typed objects. On an Umbraco node (the cms document) properties are retrieved like this:


And my strongly typed objects are in the format of MyObject.PropertyName. So how do I map the property on the node which is retrieved using a method and a string beginning with a lowercase character into a property on MyObject where the property begins with an uppercase character in Emit Mapper ?

I figured out how to do it using ValueInjecter, but would like to improve performance (see And I read somewhere that Emit Mapper might have better performance

Is it possible to use Emit Mapper to map an object where the properties are stored as string to an object with the same properties but as other types ?


ObjectA.Price = "54"