Example #1
0
        public ClassMappingInstruction(Type sourceType, Type destinationType, ClassMappingInstructionOptions options)
        {
            SourceType      = sourceType;
            DestinationType = destinationType;

            // TODO: actually use the options :D
            Options = options;
        }
Example #2
0
 internal static ClassMappingInstruction FromTypes <T1, T2>(ClassMappingInstructionOptions options)
 {
     return(new ClassMappingInstruction(typeof(T1), typeof(T2), options));
 }
Example #3
0
        public ClassMappingInstructionContext AddMapping <T1, T2>(ClassMappingInstructionOptions options)
        {
            ClassMappingInstruction mapping = ClassMappingInstruction.FromTypes <T1, T2>(options);

            return(AddMapping(mapping));
        }