automapperdev - AutoMapper.Data 1.0.1

ADO.NET extensions for AutoMapper

PM> Install-Package AutoMapper.Data -Version 1.0.1 -Source https://www.myget.org/F/automapperdev/api/v3/index.json

Copy to clipboard

> nuget.exe install AutoMapper.Data -Version 1.0.1 -Source https://www.myget.org/F/automapperdev/api/v3/index.json

Copy to clipboard

> dotnet add package AutoMapper.Data --version 1.0.1 --source https://www.myget.org/F/automapperdev/api/v3/index.json

Copy to clipboard
<PackageReference Include="AutoMapper.Data" Version="1.0.1" />
Copy to clipboard
source https://www.myget.org/F/automapperdev/api/v3/index.json

nuget AutoMapper.Data  ~> 1.0.1
Copy to clipboard

> choco install AutoMapper.Data --version 1.0.1 --source https://www.myget.org/F/automapperdev/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "automapperdev" -SourceLocation "https://www.myget.org/F/automapperdev/api/v2"
Install-Module -Name "AutoMapper.Data" -RequiredVersion "1.0.1" -Repository "automapperdev" 
Copy to clipboard

AutoMapper

The data extensions to AutoMapper, IDataReader support

CI NuGet MyGet (dev)

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)
  • .NETFramework 4.5: 4.5.0.0
  • .NETStandard 1.3: 1.3.0.0

Owners

Jimmy Bogard

Authors

Jimmy Bogard

Project URL

https://github.com/AutoMapper/AutoMapper.Data

License

MIT

Tags

AutoMapper

Info

43 total downloads
2 downloads for version 1.0.1
Download (32.03 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 2
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 4
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