MapperGenerator
MapperGenerator copied to clipboard
mapping
public class PersonEntity
{
public int Id { get; set; }
public string Name { get; set; }
public string Age { get; set; }
}
[Mapping(typeof(PersonEntity),IgnoreNotMatch = true)] // if add true will ignore does not matched? how about it?
public class PersonViewModel
{
public int Id { get; set; }
public string Name { get; set; }
public string Age { get; set; }
}
Can’t the field(Age) be ignored if they don’t match?
I think it would be nice if we plug a ignore attribute upon the property?