Method AsObjectFromBlueprint
AsObjectFromBlueprint<T>(IRecord, T)
Converts the record to an object of the same type as the given blueprint according to the global mapping configuration.
public static T AsObjectFromBlueprint<T>(this IRecord record, T blueprint)
Parameters
recordIRecordThe record to convert.
blueprintTAn object to be used as a blueprint for the mapping. This could be an object of an anonymous type.
Returns
- T
The mapped object.
Type Parameters
TThe type that will be mapped to.