{"id":13457924,"url":"https://github.com/riok/mapperly","last_synced_at":"2025-05-13T23:05:03.311Z","repository":{"id":37013216,"uuid":"459090159","full_name":"riok/mapperly","owner":"riok","description":"A .NET source generator for generating object mappings. No runtime reflection.","archived":false,"fork":false,"pushed_at":"2025-05-13T19:28:55.000Z","size":5267,"stargazers_count":3346,"open_issues_count":63,"forks_count":167,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-05-13T20:52:40.232Z","etag":null,"topics":["c-sharp","csharp","csharp-sourcegenerator","dotnet","dotnet-core","hacktoberfest","mapping","roslyn"],"latest_commit_sha":null,"homepage":"https://mapperly.riok.app","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/riok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["riok"]}},"created_at":"2022-02-14T09:13:56.000Z","updated_at":"2025-05-13T19:28:59.000Z","dependencies_parsed_at":"2023-10-17T00:00:48.239Z","dependency_job_id":"7ee8542a-3e22-44ed-a8ad-444f0692ba35","html_url":"https://github.com/riok/mapperly","commit_stats":null,"previous_names":[],"tags_count":103,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riok%2Fmapperly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riok%2Fmapperly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riok%2Fmapperly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riok%2Fmapperly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riok","download_url":"https://codeload.github.com/riok/mapperly/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254040612,"owners_count":22004578,"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":["c-sharp","csharp","csharp-sourcegenerator","dotnet","dotnet-core","hacktoberfest","mapping","roslyn"],"created_at":"2024-07-31T09:00:39.761Z","updated_at":"2025-05-13T23:04:58.298Z","avatar_url":"https://github.com/riok.png","language":"C#","readme":"# Mapperly\n\n[![Nuget](https://img.shields.io/nuget/v/Riok.Mapperly?style=flat-square)](https://www.nuget.org/packages/Riok.Mapperly/)\n[![Nuget Preview](https://img.shields.io/nuget/vpre/Riok.Mapperly?style=flat-square\u0026label=nuget%20preview)](https://www.nuget.org/packages/Riok.Mapperly/)\n[![License](https://img.shields.io/github/license/riok/mapperly?style=flat-square)](https://github.com/riok/mapperly/blob/main/LICENSE)\n[![Downloads](https://img.shields.io/nuget/dt/riok.mapperly?style=flat-square)](https://www.nuget.org/packages/Riok.Mapperly/)\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/riok)](https://github.com/sponsors/riok)\n[![GitHub](https://img.shields.io/badge/-source-181717.svg?logo=GitHub)](https://github.com/riok/mapperly)\n\n\nMapperly is a .NET source generator for generating object mappings.\n\nBecause Mapperly creates the mapping code at build time, there is minimal overhead at runtime.\nEven better, the generated code is perfectly readable, allowing you to verify the generated mapping code easily.\n\n## Documentation\n\nThe documentation is available [here](https://mapperly.riok.app/docs/getting-started/installation).\n\n## Quickstart\n\n### Installation\n\nAdd the NuGet Package to your project:\n```bash\ndotnet add package Riok.Mapperly\n```\n\n### Create your first mapper\n\nCreate a mapper declaration as a partial class\nand apply the `Riok.Mapperly.Abstractions.MapperAttribute` attribute.\nMapperly generates mapping method implementations for the defined mapping methods in the mapper.\n\n```c#\n// Mapper declaration\n[Mapper]\npublic partial class CarMapper\n{\n    public partial CarDto CarToCarDto(Car car);\n}\n\n// Mapper usage\nvar mapper = new CarMapper();\nvar car = new Car { NumberOfSeats = 10, ... };\nvar dto = mapper.CarToCarDto(car);\ndto.NumberOfSeats.Should().Be(10);\n```\n\n[Read the docs](https://mapperly.riok.app/docs/getting-started/installation) for any further information.\n\n## Upgrading\n\nFind a list of breaking changes for each major version and upgrade guides [here](https://mapperly.riok.app/docs/category/upgrading/).\n\n## How To Contribute\n\nWe would love for you to contribute to Mapperly and help make it even better than it is today!\nFind information on how to contribute [in the docs](https://mapperly.riok.app/docs/contributing/).\n\n## License\n\nMapperly is [Apache 2.0](https://github.com/riok/mapperly/blob/main/LICENSE) licensed.\n","funding_links":["https://github.com/sponsors/riok"],"categories":["C\\#","C#","Content","Source Generators","Libraries","hacktoberfest","Object to object mapping","Audio","C# #"],"sub_categories":["25. [mapperly](https://ignatandrei.github.io/RSCG_Examples/v2/docs/mapperly) , in the [Mapper](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mapper) category","Mappers","Object Mapper","GUI - other"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friok%2Fmapperly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friok%2Fmapperly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friok%2Fmapperly/lists"}