Can I use AutoMapper to map from data in an XElement to my own type ? How ?
+1
A:
Yes you can but in any case you will end up writing a function that does the conversion from the non strongly typed XElement
to your strongly typed class, so AutoMapper
wouldn't bring much value here. You could use ConvertUsing
or write a custom ITypeConverter
.
Darin Dimitrov
2010-08-18 14:57:15
+1
A:
you can use ValueInjecter for this, look at this link, it's something similar:
http://valueinjecter.codeplex.com/Thread/View.aspx?ThreadId=218448
Omu
2010-08-18 17:18:12