예제 #1
0
 public EnumerableTypeMapper(AbstractFluentMappingEngine engine) : base(engine)
 {
     Mandate.That(TypeFinder.IsTypeAssignableFrom <IEnumerable>(typeof(TSource)), x => new InvalidOperationException("EnumerableTypeMapper is only used for source and destination types of IEnumerable"));
     Mandate.That(TypeFinder.IsTypeAssignableFrom <IEnumerable>(typeof(TTarget)), x => new InvalidOperationException("EnumerableTypeMapper is only used for source and destination types of IEnumerable"));
 }
예제 #2
0
 protected AbstractTypeMapper(AbstractFluentMappingEngine engine)
 {
     //create a new context
     MappingContext = new FluentMappingEngineContext <TSource, TTarget>(engine);
     MapperId       = Guid.NewGuid();
 }
예제 #3
0
 public MappingExecutionScope(AbstractFluentMappingEngine forMappingEngine)
 {
     _engine = forMappingEngine;
     ScopeId = Guid.NewGuid();
 }
 public FluentMappingEngineContext(AbstractFluentMappingEngine engine)
 {
     Engine           = engine;
     FrameworkContext = engine.FrameworkContext;
 }