AutoMapper 10.1.1
dotnet add package AutoMapper --version 10.1.1
NuGet\Install-Package AutoMapper -Version 10.1.1
<PackageReference Include="AutoMapper" Version="10.1.1" />
<PackageVersion Include="AutoMapper" Version="10.1.1" />
<PackageReference Include="AutoMapper" />
paket add AutoMapper --version 10.1.1
#r "nuget: AutoMapper, 10.1.1"
#addin nuget:?package=AutoMapper&version=10.1.1
#tool nuget:?package=AutoMapper&version=10.1.1
What is AutoMapper?
AutoMapper is a simple little library built to solve a deceptively complex problem - getting rid of code that mapped one object to another. This type of code is rather dreary and boring to write, so why not invent a tool to do it for us?
This is the main repository for AutoMapper, but there's more:
- Microsoft DI Extensions
- Collection Extensions
- Expression Mapping
- EF6 Extensions
- IDataReader/Record Extensions
- Enum Extensions
How do I get started?
First, configure AutoMapper to know what types you want to map, in the startup of your application:
var configuration = new MapperConfiguration(cfg =>
{
cfg.CreateMap<Foo, FooDto>();
cfg.CreateMap<Bar, BarDto>();
});
// only during development, validate your mappings; remove it before release
#if DEBUG
configuration.AssertConfigurationIsValid();
#endif
// use DI (http://docs.automapper.org/en/latest/Dependency-injection.html) or create the mapper yourself
var mapper = configuration.CreateMapper();
Then in your application code, execute the mappings:
var fooDto = mapper.Map<FooDto>(foo);
var barDto = mapper.Map<BarDto>(bar);
Check out the getting started guide. When you're done there, the wiki goes in to the nitty-gritty details. If you have questions, you can post them to Stack Overflow or in our Gitter.
Where can I get it?
First, install NuGet. Then, install AutoMapper from the package manager console:
PM> Install-Package AutoMapper
Or from the .NET CLI as:
dotnet add package AutoMapper
Do you have an issue?
First check if it's already fixed by trying the MyGet build.
You might want to know exactly what your mapping does at runtime.
If you're still running into problems, file an issue above.
License, etc.
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.
AutoMapper is Copyright © 2009 Jimmy Bogard and other contributors under the MIT license.
.NET Foundation
This project is supported by the .NET Foundation.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.1
- No dependencies.
-
.NETStandard 2.0
- Microsoft.CSharp (>= 4.7.0)
- System.Reflection.Emit (>= 4.7.0)
NuGet packages (8)
Showing the top 5 NuGet packages that depend on AutoMapper:
Package | Downloads |
---|---|
UmbracoCms.Core
Contains the core assemblies needed to run Umbraco Cms. This package only contains assemblies and can be used for package development. Use the UmbracoCms-package to setup Umbraco in Visual Studio as an ASP.NET project. |
|
Unipluss.Sign.Client
Client library to communication with Signere.no REST API. The library contains relevant model classes and a client class with methods to access all resources provided in the Signere.no API. The client class itself is implemented from an interface to make it easily testable. All explicit communication with the API is handled internally and translated to POCO objects. The client methods require certain fields from Signere.no user credentials in order to work properly. To create a user account and obtain these credentials, please visit signere.no . Also, check out the REST API documentation at Https://api.signere.no for further details about the resources that can be accessed through this library. |
|
WindowsAzure.MobileServices.Backend.Entity
This package contains everything you need to expose structured storage using Entity Framework as part of your .NET mobile backend hosted in Microsoft Azure. For more information, check out http://azure.microsoft.com/mobile |
|
Abp.AutoMapper
AutoMapper integration package for ASP.NET Boilerplate. |
|
KubernetesClient
Client library for the Kubernetes open source container orchestrator. |
GitHub repositories (354)
Showing the top 20 popular GitHub repositories that depend on AutoMapper:
Repository | Stars |
---|---|
BeyondDimension/SteamTools
🛠「Watt Toolkit」是一个开源跨平台的多功能 Steam 工具箱。
|
|
jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for ASP.NET Core
|
|
ppy/osu
rhythm is just a *click* away!
|
|
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
|
|
aspnetboilerplate/aspnetboilerplate
ASP.NET Boilerplate - Web Application Framework
|
|
nopSolutions/nopCommerce
ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
|
|
dotnet/eShop
A reference .NET application implementing an eCommerce site
|
|
anjoy8/Blog.Core
💖 ASP.NET Core 8.0 全家桶教程,前后端分离后端接口,vue教程姊妹篇,官方文档:
|
|
jasontaylordev/NorthwindTraders
Northwind Traders is a sample application built using ASP.NET Core and Entity Framework Core.
|
|
dotnetcore/Util
Util是一个.Net平台下的应用框架,旨在提升中小团队的开发能力,由工具类、分层架构基类、Ui组件,配套代码生成模板,权限等组成。
|
|
MapsterMapper/Mapster
A fast, fun and stimulating object to object Mapper
|
|
BililiveRecorder/BililiveRecorder
录播姬 | mikufans 生放送录制
|
|
cq-panda/Vue.NetCore
(已支持sqlsugar).NetCore、.Net6、Vue2、Vue3、Vite、TypeScript、Element plus+uniapp前后端分离,全自动生成代码;支持移动端(ios/android/h5/微信小程序。http://www.volcore.xyz/
|
|
Ombi-app/Ombi
Want a Movie or TV Show on Plex/Emby/Jellyfin? Use Ombi!
|
|
skoruba/IdentityServer4.Admin
The administration for the IdentityServer4 and Asp.Net Core Identity
|
|
fullstackhero/blazor-starter-kit
Clean Architecture Template for Blazor WebAssembly Built with MudBlazor Components.
|
|
oskardudycz/EventSourcing.NetCore
Examples and Tutorials of Event Sourcing in .NET
|
|
fluentmigrator/fluentmigrator
Fluent migrations framework for .NET
|
|
ONLYOFFICE/CommunityServer
Free open source office suite with business productivity tools: document and project management, CRM, mail aggregator.
|
|
dotnetcore/osharp
OSharp是一个基于.Net6.0的快速开发框架,框架对 AspNetCore 的配置、依赖注入、日志、缓存、实体框架、Mvc(WebApi)、身份认证、功能权限、数据权限等模块进行更高一级的自动化封装,并规范了一套业务实现的代码结构与操作流程,使 .Net 框架更易于应用到实际项目开发中。
|
Version | Downloads | Last updated |
---|---|---|
10.1.1 | 68 | 3/8/2021 |
10.1.0 | 0 | 3/8/2021 |
10.0.0 | 2 | 3/8/2021 |
9.0.0 | 33,023 | 3/8/2021 |
8.1.1 | 4 | 3/8/2021 |
8.1.0 | 2 | 3/8/2021 |
8.0.0 | 22 | 3/8/2021 |
7.0.1 | 3 | 3/8/2021 |
7.0.0 | 0 | 3/8/2021 |
7.0.0-alpha-0001 | 0 | 3/8/2021 |
6.2.2 | 2 | 3/8/2021 |
6.2.1 | 0 | 3/8/2021 |
6.2.0 | 0 | 3/8/2021 |
6.1.1 | 398 | 3/8/2021 |
6.1.0 | 19 | 3/8/2021 |
6.0.2 | 109 | 3/8/2021 |
6.0.1 | 21 | 3/8/2021 |
6.0.0 | 8 | 3/8/2021 |
5.2.0 | 189 | 3/8/2021 |
5.1.1 | 174 | 3/8/2021 |
5.1.0 | 0 | 3/8/2021 |
5.0.2 | 55 | 3/8/2021 |
5.0.1 | 0 | 3/8/2021 |
5.0.0 | 6 | 3/8/2021 |
5.0.0-beta-1 | 2 | 3/8/2021 |
4.2.1 | 128 | 3/8/2021 |
4.2.0 | 28 | 3/8/2021 |
4.1.1 | 92,381 | 10/26/2015 |
4.1.0 | 11,976 | 10/22/2015 |
4.0.4 | 187,332 | 8/6/2015 |
4.0.3 | 1,555 | 8/5/2015 |
4.0.2 | 676 | 8/5/2015 |
4.0.1 | 801 | 8/5/2015 |
4.0.0 | 2,796 | 8/5/2015 |
4.0.0-alpha1 | 5,236 | 7/7/2015 |
3.3.1 | 481,125 | 1/29/2015 |
3.3.0 | 148,688 | 11/29/2014 |
3.3.0-ci1033 | 168 | 12/3/2014 |
3.3.0-ci1032 | 195 | 11/27/2014 |
3.3.0-ci1031 | 137 | 11/27/2014 |
3.3.0-ci1030 | 357 | 11/24/2014 |
3.3.0-ci1029 | 211 | 11/24/2014 |
3.3.0-ci1028 | 382 | 11/21/2014 |
3.3.0-ci1027 | 14,615 | 9/12/2014 |
3.3.0-ci1026 | 172 | 9/12/2014 |
3.3.0-ci1025 | 190 | 9/12/2014 |
3.3.0-ci1024 | 577 | 9/9/2014 |
3.3.0-ci1023 | 351 | 9/6/2014 |
3.3.0-ci1022 | 939 | 9/4/2014 |
3.3.0-ci1021 | 194 | 9/4/2014 |
3.3.0-ci1020 | 215 | 9/3/2014 |
3.3.0-ci1019 | 277 | 9/2/2014 |
3.3.0-ci1018 | 170 | 9/2/2014 |
3.3.0-ci1017 | 7,566 | 7/22/2014 |
3.3.0-ci1016 | 208 | 7/21/2014 |
3.3.0-ci1009 | 295 | 7/18/2014 |
3.3.0-ci1008 | 1,358 | 6/27/2014 |
3.3.0-ci1007 | 233 | 6/26/2014 |
3.3.0-ci1006 | 478 | 6/23/2014 |
3.3.0-ci1005 | 160 | 6/23/2014 |
3.3.0-ci1004 | 162 | 6/23/2014 |
3.3.0-ci1003 | 206 | 6/23/2014 |
3.3.0-ci1002 | 254 | 6/20/2014 |
3.3.0-ci1001 | 197 | 6/20/2014 |
3.3.0-ci1000 | 171 | 6/20/2014 |
3.2.1 | 451,774 | 4/25/2014 |
3.2.1-ci1002 | 175 | 4/25/2014 |
3.2.1-ci1001 | 2,476 | 4/24/2014 |
3.2.1-ci1000 | 518 | 4/24/2014 |
3.2.0 | 25,165 | 4/14/2014 |
3.2.0-ci1043 | 196 | 4/14/2014 |
3.2.0-ci1042 | 353 | 4/10/2014 |
3.2.0-ci1041 | 145 | 4/10/2014 |
3.2.0-ci1040 | 150 | 4/10/2014 |
3.2.0-ci1039 | 154 | 4/10/2014 |
3.2.0-ci1038 | 190 | 4/9/2014 |
3.2.0-ci1037 | 155 | 4/9/2014 |
3.2.0-ci1036 | 142 | 4/9/2014 |
3.2.0-ci1035 | 159 | 4/9/2014 |
3.2.0-ci1034 | 145 | 4/9/2014 |
3.2.0-ci1033 | 151 | 4/9/2014 |
3.2.0-ci1030 | 146 | 4/9/2014 |
3.2.0-ci1029 | 150 | 4/9/2014 |
3.2.0-ci1028 | 153 | 4/9/2014 |
3.2.0-ci1027 | 276 | 4/8/2014 |
3.2.0-ci1026 | 148 | 4/8/2014 |
3.2.0-ci1025 | 236 | 4/7/2014 |
3.2.0-ci1024 | 142 | 4/7/2014 |
3.2.0-ci1023 | 151 | 4/7/2014 |
3.2.0-ci1022 | 197 | 4/7/2014 |
3.2.0-ci1021 | 325 | 4/6/2014 |
3.2.0-ci1017 | 1,075 | 4/3/2014 |
3.2.0-ci1016 | 191 | 4/3/2014 |
3.2.0-ci1015 | 187 | 4/3/2014 |
3.2.0-ci1014 | 189 | 4/3/2014 |
3.2.0-ci1011 | 1,651 | 3/10/2014 |
3.2.0-ci1010 | 751 | 3/3/2014 |
3.2.0-ci1009 | 193 | 3/3/2014 |
3.2.0-ci1008 | 187 | 3/3/2014 |
3.2.0-ci1005 | 377 | 2/26/2014 |
3.2.0-ci1004 | 543 | 2/21/2014 |
3.2.0-ci1003 | 581 | 2/18/2014 |
3.2.0-ci1002 | 972 | 1/28/2014 |
3.2.0-ci1001 | 264 | 1/27/2014 |
3.2.0-ci1000 | 415 | 1/24/2014 |
3.1.1 | 241,335 | 12/31/2013 |
3.1.1-ci1003 | 630 | 12/18/2013 |
3.1.1-ci1000 | 8,771 | 11/21/2013 |
3.1.0 | 76,651 | 11/17/2013 |
3.1.0-ci1058 | 219 | 11/17/2013 |
3.1.0-ci1056 | 962 | 11/12/2013 |
3.1.0-ci1053 | 262 | 11/12/2013 |
3.1.0-ci1051 | 623 | 11/6/2013 |
3.1.0-ci1050 | 196 | 11/6/2013 |
3.1.0-ci1049 | 891 | 11/6/2013 |
3.1.0-ci1048 | 534 | 11/5/2013 |
3.1.0-ci1047 | 370 | 11/5/2013 |
3.1.0-ci1046 | 206 | 11/5/2013 |
3.1.0-ci1045 | 331 | 11/5/2013 |
3.1.0-ci1044 | 480 | 11/4/2013 |
3.1.0-ci1043 | 272 | 11/3/2013 |
3.1.0-ci1038 | 384 | 11/2/2013 |
3.1.0-ci1037 | 275 | 11/1/2013 |
3.1.0-ci1036 | 1,240 | 10/29/2013 |
3.1.0-ci1035 | 214 | 10/29/2013 |
3.1.0-ci1034 | 380 | 10/29/2013 |
3.1.0-ci1033 | 242 | 10/28/2013 |
3.1.0-ci1032 | 2,708 | 10/17/2013 |
3.1.0-ci1027 | 600 | 10/6/2013 |
3.1.0-ci1026 | 758 | 9/27/2013 |
3.1.0-ci1024 | 824 | 9/24/2013 |
3.1.0-ci1023 | 719 | 9/23/2013 |
3.1.0-ci1022 | 219 | 9/23/2013 |
3.1.0-ci1021 | 834 | 9/15/2013 |
3.1.0-ci1020 | 1,455 | 9/2/2013 |
3.1.0-ci1019 | 271 | 9/1/2013 |
3.1.0-ci1018 | 226 | 9/1/2013 |
3.1.0-ci1017 | 211 | 8/31/2013 |
3.1.0-ci1016 | 385 | 8/31/2013 |
3.1.0-ci1014 | 228 | 8/31/2013 |
3.0.0 | 201,540 | 8/25/2013 |
3.0.0-ci1053 | 212 | 8/25/2013 |
3.0.0-ci1043 | 405 | 8/20/2013 |
3.0.0-ci1042 | 374 | 8/20/2013 |
3.0.0-ci1041 | 205 | 8/20/2013 |
3.0.0-ci1040 | 208 | 8/20/2013 |
3.0.0-ci1039 | 297 | 8/19/2013 |
3.0.0-ci1038 | 308 | 8/18/2013 |
3.0.0-ci1037 | 5,609 | 6/20/2013 |
3.0.0-ci1036 | 2,112 | 5/17/2013 |
3.0.0-ci1035 | 3,235 | 4/13/2013 |
3.0.0-ci1034 | 461 | 4/13/2013 |
3.0.0-ci1033 | 324 | 4/12/2013 |
3.0.0-ci1032 | 489 | 4/12/2013 |
3.0.0-ci1031 | 290 | 4/12/2013 |
3.0.0-ci1029 | 650 | 4/7/2013 |
3.0.0-ci1028 | 2,933 | 3/23/2013 |
3.0.0-ci1026 | 500 | 3/22/2013 |
2.2.1 | 328,322 | 2/18/2013 |
2.2.1-ci9006 | 238 | 2/18/2013 |
2.2.1-ci9005 | 370 | 2/18/2013 |
2.2.1-ci9004 | 2,294 | 2/12/2013 |
2.2.1-ci9003 | 193 | 2/12/2013 |
2.2.1-ci9002 | 375 | 2/12/2013 |
2.2.1-ci9001 | 3,812 | 1/24/2013 |
2.2.1-ci9000 | 16,962 | 11/16/2012 |
2.2.1-ci9 | 2,700 | 10/22/2012 |
2.2.1-ci8 | 1,948 | 9/30/2012 |
2.2.1-ci7 | 513 | 9/29/2012 |
2.2.1-ci6 | 390 | 9/29/2012 |
2.2.1-ci5 | 372 | 9/29/2012 |
2.2.1-ci4 | 199 | 9/29/2012 |
2.2.1-ci17 | 378 | 11/15/2012 |
2.2.1-ci16 | 210 | 11/15/2012 |
2.2.1-ci15 | 380 | 11/15/2012 |
2.2.1-ci11 | 206 | 11/8/2012 |
2.2.1-ci1000 | 203 | 11/16/2012 |
2.2.1-ci10 | 383 | 11/8/2012 |
2.2.0 | 150,570 | 9/22/2012 |
2.1.267 | 144,533 | 4/15/2012 |
2.1.266 | 13,636 | 3/29/2012 |
2.1.265 | 23,073 | 2/29/2012 |
2.1.262 | 387 | 2/29/2012 |
2.1.1 | 1,417 | 4/15/2012 |
2.0.0 | 74,297 | 9/22/2011 |
1.1.2 | 0 | 3/8/2021 |
1.1.1 | 0 | 3/8/2021 |
1.1.0.118 | 52,200 | 9/7/2011 |