This project is read-only.

R1 beta 2

Rating: No reviews yet
Downloads: 25
Change Set: 59681
Released: Apr 12, 2011
Updated: Apr 13, 2011 by dlucas
Dev status: Beta Help Icon

Recommended Download

Application Moo
application, 13K, uploaded Apr 13, 2011 - 18 downloads

Other Available Downloads

Source Code Moo sources
source code, 266K, uploaded Apr 13, 2011 - 7 downloads

Release Notes

Upgrades on beta 1 code, mainly around:
  1. Map overloads: now mappers can either create the target (if it has a default contructor) or use a factory function for that:
var mapper = MappingRepositoty.Resolve<ClassA, ClassB>();
var source = new ClassA();
// fill source, then
var target = mapper.Map(source, () => CreateClassB());
// if ClassB has a default contructor, mapping can be even easier:
var target2 = mapper.Map(source);
  1. IEnumerable handling: now a mapper from type ClassA to type ClassB can do:
IEnumerable<ClassB> results = mapper.MapMultiple(listOfClassAObjects);
  1. Null handling: when scaffolding from an inner property (such as in source.InnerClass.Name to target.InnerClassName), internal properties are checked against null, to avoid a NullReferenceException

Reviews for this release

No reviews yet for this release.