Exemplo n.º 1
0
        public MemberMapping(TypeMapping typeMapping,
                             MappingSource sourceMember, MappingTarget targetMember)
        {
            this.InstanceTypeMapping = typeMapping;

            this.SourceMember = sourceMember;
            this.TargetMember = targetMember;
        }
        public MemberMapping(TypeMapping typeMapping,
                             MappingSource sourceMember, MappingTarget targetMember)
        {
            this.InstanceTypeMapping = typeMapping;

            this.SourceMember = sourceMember;
            this.TargetMember = targetMember;

            _toString = new Lazy <string>(() =>
                                          $"{this.SourceMember} -> {this.TargetMember}");
        }
Exemplo n.º 3
0
 public MemberMapping GetMemberMapping(MappingSource mappingSource, MappingTarget mappingTarget)
 {
     return(new MemberMapping(this, mappingSource, mappingTarget));
 }