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")); }
protected AbstractTypeMapper(AbstractFluentMappingEngine engine) { //create a new context MappingContext = new FluentMappingEngineContext <TSource, TTarget>(engine); MapperId = Guid.NewGuid(); }
public MappingExecutionScope(AbstractFluentMappingEngine forMappingEngine) { _engine = forMappingEngine; ScopeId = Guid.NewGuid(); }
public FluentMappingEngineContext(AbstractFluentMappingEngine engine) { Engine = engine; FrameworkContext = engine.FrameworkContext; }