automapperdev - AutoMapper.Data 2.0.0
ADO.NET extensions for AutoMapper
PM> Install-Package AutoMapper.Data -Version 2.0.0 -Source https://www.myget.org/F/automapperdev/api/v3/index.json
> nuget.exe install AutoMapper.Data -Version 2.0.0 -Source https://www.myget.org/F/automapperdev/api/v3/index.json
> dotnet add package AutoMapper.Data --version 2.0.0 --source https://www.myget.org/F/automapperdev/api/v3/index.json
source https://www.myget.org/F/automapperdev/api/v3/index.json
nuget AutoMapper.Data ~> 2.0.0
Copy to clipboard
> choco install AutoMapper.Data --version 2.0.0 --source https://www.myget.org/F/automapperdev/api/v2
Import-Module PowerShellGet
Register-PSRepository -Name "automapperdev" -SourceLocation "https://www.myget.org/F/automapperdev/api/v2"
Install-Module -Name "AutoMapper.Data" -RequiredVersion "2.0.0" -Repository "automapperdev"
Copy to clipboard
The data extensions to AutoMapper, IDataReader support
Install via initialization:
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.
Using Profile
:
There are several ways to configure mapping with an instance of Profile
:
- Create an instance of Profile, call the
Profile.AddDataRecordMember
extension method on it, and add it to the configuration. - Call
AddMemberConfiguration().AddMember<DataRecordMemberConfiguration>()
on the instance. - Call the
IMapperConfigurationExpression.AddDataReaderProfile
extension method.
-
.NETFramework 4.5
- AutoMapper (>= 7.0.1)
-
.NETStandard 1.3
- AutoMapper (>= 7.0.1)
- NETStandard.Library (>= 1.6.1)
- System.Data.Common (>= 4.3.0)
- System.Reflection.Emit (>= 4.3.0)
- System.Reflection.Emit.ILGeneration (>= 4.3.0)
- System.Reflection.Emit.Lightweight (>= 4.3.0)
- System.Reflection.TypeExtensions (>= 4.4.0)
-
.NETStandard 2.0
- AutoMapper (>= 7.0.1)
- System.Reflection.Emit.ILGeneration (>= 4.3.0)
- System.Reflection.Emit.Lightweight (>= 4.3.0)
- .NETFramework 4.5: 4.5.0.0
- .NETStandard 1.3: 1.3.0.0
- .NETStandard 2.0: 2.0.0.0
OwnersJimmy Bogard |
AuthorsJimmy Bogard |
Project URLhttps://github.com/AutoMapper/AutoMapper.Data |
LicenseMIT |
TagsAutoMapper |
Info41 total downloads |
2 downloads for version 2.0.0 |
Download (47.02 KB) |
Found on the current feed only |
Package history
Version | Size | Last updated | Downloads | Mirrored? | |||
---|---|---|---|---|---|---|---|
8.0.0 | 18.75 KB | Tue, 13 Feb 2024 16:53:46 GMT | 0 | ||||
7.0.2 | 18.75 KB | Tue, 13 Feb 2024 16:26:04 GMT | 6 | ||||
7.0.1 | 18.19 KB | Tue, 29 Nov 2022 07:18:07 GMT | 1 | ||||
7.0.0 | 18.18 KB | Tue, 29 Nov 2022 07:19:18 GMT | 1 | ||||
6.1.0 | 18.09 KB | Sat, 26 Nov 2022 04:47:12 GMT | 3 | ||||
6.0.0 | 18.09 KB | Thu, 10 Feb 2022 10:28:34 GMT | 1 | ||||
5.0.0 | 32.73 KB | Mon, 10 Aug 2020 13:28:35 GMT | 2 | ||||
4.1.0 | 32.74 KB | Sat, 08 Aug 2020 13:15:18 GMT | 4 | ||||
4.0.0 | 32.58 KB | Fri, 06 Dec 2019 07:07:35 GMT | 3 | ||||
3.0.0 | 32.82 KB | Mon, 22 Jul 2019 05:39:02 GMT | 2 | ||||
2.0.0 | 47.02 KB | Tue, 07 Aug 2018 15:52:37 GMT | 2 | ||||
1.0.1 | 32.03 KB | Tue, 07 Aug 2018 15:12:22 GMT | 2 | ||||
1.0.0 | 16.91 KB | Sun, 20 Aug 2017 02:37:10 GMT | 4 | ||||
1.0.0-ci-00004 | 16.95 KB | Tue, 13 Jun 2017 14:21:38 GMT | 8 | ||||
1.0.0-ci-00003 | 16.75 KB | Tue, 13 Jun 2017 12:55:22 GMT | 2 |