{"id":13431008,"url":"https://github.com/AutoMapper/AutoMapper","last_synced_at":"2025-03-16T06:31:55.240Z","repository":{"id":802888,"uuid":"505380","full_name":"AutoMapper/AutoMapper","owner":"AutoMapper","description":"A convention-based object-object mapper in .NET. ","archived":false,"fork":false,"pushed_at":"2024-10-08T10:14:47.000Z","size":127147,"stargazers_count":9924,"open_issues_count":0,"forks_count":1753,"subscribers_count":375,"default_branch":"master","last_synced_at":"2024-10-16T14:34:33.525Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://automapper.org","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":"Unmaintained","scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AutoMapper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["jbogard","lbargaoanu"]}},"created_at":"2010-02-06T15:17:58.000Z","updated_at":"2024-10-16T06:59:30.000Z","dependencies_parsed_at":"2023-07-06T18:01:35.655Z","dependency_job_id":"6623b10b-26cc-40c1-ac13-7f03612a39f6","html_url":"https://github.com/AutoMapper/AutoMapper","commit_stats":{"total_commits":3367,"total_committers":201,"mean_commits":"16.751243781094526","dds":0.6370656370656371,"last_synced_commit":"2314ed6c64b1538f542859dfc1a50a91e3504452"},"previous_names":[],"tags_count":57,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutoMapper%2FAutoMapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutoMapper%2FAutoMapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutoMapper%2FAutoMapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutoMapper%2FAutoMapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AutoMapper","download_url":"https://codeload.github.com/AutoMapper/AutoMapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221656503,"owners_count":16858784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T02:00:59.765Z","updated_at":"2025-03-16T06:31:55.231Z","avatar_url":"https://github.com/AutoMapper.png","language":"C#","readme":"![AutoMapper](https://s3.amazonaws.com/automapper/logo.png)\n\n[![CI](https://github.com/automapper/automapper/workflows/CI/badge.svg)](https://github.com/AutoMapper/AutoMapper/actions?query=workflow%3ACI)\n[![NuGet](http://img.shields.io/nuget/vpre/AutoMapper.svg?label=NuGet)](https://www.nuget.org/packages/AutoMapper/)\n[![MyGet (dev)](https://img.shields.io/myget/automapperdev/vpre/AutoMapper.svg?label=MyGet)](https://myget.org/feed/automapperdev/package/nuget/AutoMapper)\n[![Documentation Status](https://readthedocs.org/projects/automapper/badge/?version=stable)](https://docs.automapper.org/en/stable/?badge=stable)\n\n\n### What is AutoMapper?\n\nAutoMapper 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?\n\nThis is the main repository for AutoMapper, but there's more:\n\n* [Collection Extensions](https://github.com/AutoMapper/AutoMapper.Collection)\n* [Expression Mapping](https://github.com/AutoMapper/AutoMapper.Extensions.ExpressionMapping)\n* [EF6 Extensions](https://github.com/AutoMapper/AutoMapper.EF6)\n* [IDataReader/Record Extensions](https://github.com/AutoMapper/AutoMapper.Data)\n* [Enum Extensions](https://github.com/AutoMapper/AutoMapper.Extensions.EnumMapping)\n\n### How do I get started?\n\nFirst, configure AutoMapper to know what types you want to map, in the startup of your application:\n\n```csharp\nvar configuration = new MapperConfiguration(cfg =\u003e \n{\n    cfg.CreateMap\u003cFoo, FooDto\u003e();\n    cfg.CreateMap\u003cBar, BarDto\u003e();\n});\n// only during development, validate your mappings; remove it before release\n#if DEBUG\nconfiguration.AssertConfigurationIsValid();\n#endif\n// use DI (http://docs.automapper.org/en/latest/Dependency-injection.html) or create the mapper yourself\nvar mapper = configuration.CreateMapper();\n```\nThen in your application code, execute the mappings:\n\n```csharp\nvar fooDto = mapper.Map\u003cFooDto\u003e(foo);\nvar barDto = mapper.Map\u003cBarDto\u003e(bar);\n```\n\nCheck out the [getting started guide](https://automapper.readthedocs.io/en/latest/Getting-started.html). When you're done there, the [wiki](https://automapper.readthedocs.io/en/latest/) goes in to the nitty-gritty details. If you have questions, you can post them to [Stack Overflow](https://stackoverflow.com/questions/tagged/automapper) or in our [Gitter](https://gitter.im/AutoMapper/AutoMapper).\n\n### Where can I get it?\n\nFirst, [install NuGet](http://docs.nuget.org/docs/start-here/installing-nuget). Then, install [AutoMapper](https://www.nuget.org/packages/AutoMapper/) from the package manager console:\n\n```\nPM\u003e Install-Package AutoMapper\n```\nOr from the .NET CLI as:\n```\ndotnet add package AutoMapper\n```\n\n### Do you have an issue?\n\nFirst check if it's already fixed by trying the [MyGet build](https://automapper.readthedocs.io/en/latest/The-MyGet-build.html).\n\nYou might want to know exactly what [your mapping does](https://automapper.readthedocs.io/en/latest/Understanding-your-mapping.html) at runtime.\n\nIf you're still running into problems, file an issue above.\n\n### License, etc.\n\nThis project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.\nFor more information see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).\n\nAutoMapper is Copyright \u0026copy; 2009 [Jimmy Bogard](https://jimmybogard.com) and other contributors under the [MIT license](https://github.com/AutoMapper/AutoMapper?tab=MIT-1-ov-file#MIT-1-ov-file).\n\n### .NET Foundation\n\nThis project is supported by the [.NET Foundation](https://dotnetfoundation.org).\n","funding_links":["https://github.com/sponsors/jbogard","https://github.com/sponsors/lbargaoanu"],"categories":["Frameworks, Libraries and Tools","HarmonyOS","C\\#","others","C# #","框架, 库和工具","Mapping Objects","C#","Libraries","General","Object to object mapping","对象到对象映射","Mapping","EF Core Providers Connectors"],"sub_categories":["Misc","Windows Manager","大杂烩","Object Mapper","GUI - other"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAutoMapper%2FAutoMapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAutoMapper%2FAutoMapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAutoMapper%2FAutoMapper/lists"}