var mapper = new Mapper(cfg => { cfg.AddDataReaderMapping(); cfg.CreateMap<IDataRecord, MyDto>(); cfg.CreateMap<IDataRecord, MyOtherDto>(); // Other config }); // or with the AutoMapper.Extensions.Microsoft.DependencyInjection package: services.AddAutoMapper(typeof(Startup), cfg => { cfg.AddDataReaderMapping(); });
You will need to configure maps for each IDataRecord
DTO mapping.
There are several ways to configure mapping with an instance of Profile
:
Profile.AddDataRecordMember
extension method on it, and add it to the configuration.AddMemberConfiguration().AddMember<DataRecordMemberConfiguration>()
on the instance.IMapperConfigurationExpression.AddDataReaderProfile
extension method.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4