1

Resolved

Should have simple method for exclusions (just like aliases) and returns mapped property

description

A simple method method should be available that only takes an exclusion list and returns a mapped property, just like aliases has. This will only be available for properties that have default constructors.
 
Example:
{{
        var dto  = emp.MapProperties<EmployeeDTO>(dto,new Exclusions { "FirstName" });
}}
As of now, the closest we have to this is
{{
        var dto = new EmployeeDTO();
        emp.MapProperties(dto, new Exclusions { "*Name" });
 
}}
where the destination (in this case "dto") needs to be passed in. This method must still remain to accommodate objects that do not have default constructors.

comments

ggalbo wrote Apr 12, 2011 at 1:10 PM

New fluid syntax makes this request obsolete. Any rule can be chained.

wrote Feb 12, 2013 at 11:39 PM

wrote May 14, 2013 at 10:26 PM

wrote May 14, 2013 at 10:26 PM

wrote Jun 12, 2013 at 12:32 AM