From 8e246271b52e3d8c741f031083320657a774b27c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A8=D0=B8=D0=BC=D0=BE=D0=BB=D0=B8=D0=BD=20=D0=94=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=81=20=D0=92=D0=B8=D0=BA=D1=82=D0=BE=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=B8=D1=87?= Date: Thu, 3 Mar 2016 20:28:15 +0500 Subject: [PATCH] Mapping options should be provided from resolution context. --- AutoMapper.Data/DataReaderMapper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutoMapper.Data/DataReaderMapper.cs b/AutoMapper.Data/DataReaderMapper.cs index 0768f2a..d6d6b4c 100644 --- a/AutoMapper.Data/DataReaderMapper.cs +++ b/AutoMapper.Data/DataReaderMapper.cs @@ -64,7 +64,7 @@ static IEnumerable MapDataReaderToEnumerable(ResolutionContext context, IMapping { var configurationProvider = mapper.ConfigurationProvider; TypeMap typeMap = configurationProvider.FindTypeMapFor(context.SourceType, destinationElementType); - resolveUsingContext = new ResolutionContext(typeMap, context.SourceValue, context.SourceType, destinationElementType, new MappingOperationOptions(), (IMappingEngine)mapper); + resolveUsingContext = new ResolutionContext(typeMap, context.SourceValue, context.SourceType, destinationElementType, context.Options, (IMappingEngine)mapper); } var buildFrom = CreateBuilder(destinationElementType, dataReader);