Beispiel #1
0
        protected void ToMember(
            Expression <Func <TSource, dynamic> > sourceMember,
            Expression <Func <TDestination, dynamic> > dtoMember
            )
        {
            MemberMapProfile <TDestination, TSource> profile = new MemberMapProfile <TDestination, TSource>();

            profile.SourceMember      = dtoMember;
            profile.DestinationMember = sourceMember;

            DestinationToSource.Add(profile);
        }
Beispiel #2
0
        protected void FromMember(
            Expression <Func <TDestination, dynamic> > dtoMember,
            Expression <Func <TSource, dynamic> > sourceMember
            )
        {
            MemberMapProfile <TSource, TDestination> profile = new MemberMapProfile <TSource, TDestination>();

            profile.SourceMember      = sourceMember;
            profile.DestinationMember = dtoMember;

            SourceToDestination.Add(profile);
        }