{"id":13818756,"url":"https://github.com/TinyMapper/TinyMapper","last_synced_at":"2025-05-16T03:33:49.547Z","repository":{"id":25385883,"uuid":"28814340","full_name":"TinyMapper/TinyMapper","owner":"TinyMapper","description":"A quick object-object mapper for .NET","archived":false,"fork":false,"pushed_at":"2024-05-27T08:19:15.000Z","size":4134,"stargazers_count":691,"open_issues_count":40,"forks_count":112,"subscribers_count":49,"default_branch":"master","last_synced_at":"2024-11-07T17:58:31.355Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://tinymapper.net","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TinyMapper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.markdown","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-01-05T13:48:38.000Z","updated_at":"2024-10-18T20:52:13.000Z","dependencies_parsed_at":"2024-01-05T20:51:57.739Z","dependency_job_id":"21fc9000-75ac-4966-92a7-6e9c01799249","html_url":"https://github.com/TinyMapper/TinyMapper","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TinyMapper%2FTinyMapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TinyMapper%2FTinyMapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TinyMapper%2FTinyMapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TinyMapper%2FTinyMapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TinyMapper","download_url":"https://codeload.github.com/TinyMapper/TinyMapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225405404,"owners_count":17469335,"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-08-04T08:00:28.747Z","updated_at":"2024-11-19T18:30:23.904Z","avatar_url":"https://github.com/TinyMapper.png","language":"C#","readme":"TinyMapper - a quick object mapper for .Net\n======================================================\n[![Nuget downloads](https://img.shields.io/nuget/v/tinymapper.svg)](https://www.nuget.org/packages/TinyMapper/)\n[![GitHub license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/TinyMapper/TinyMapper/blob/master/LICENSE)\n[![GitHub license](https://img.shields.io/badge/first--timers--only-friendly-blue.svg)](http://www.firsttimersonly.com/)\n\n## Performance Comparison\n\n![Performance Comparison](https://raw.githubusercontent.com/TinyMapper/TinyMapper/master/Source/Benchmark/DataSource/PrimitiveTypeMapping.jpg)\n\n## Installation\n\nAvailable on [nuget](https://www.nuget.org/packages/TinyMapper/)\n\n\tPM\u003e Install-Package TinyMapper\n\n## Getting Started\n\n```csharp\nTinyMapper.Bind\u003cPerson, PersonDto\u003e();\n\nvar person = new Person\n{\n\tId = Guid.NewGuid(),\n\tFirstName = \"John\",\n\tLastName = \"Doe\"\n};\n\nvar personDto = TinyMapper.Map\u003cPersonDto\u003e(person);\n```\n\nIgnore mapping source members and bind members with different names/types\n\n```csharp\nTinyMapper.Bind\u003cPerson, PersonDto\u003e(config =\u003e\n{\n\tconfig.Ignore(x =\u003e x.Id);\n\tconfig.Ignore(x =\u003e x.Email);\n\tconfig.Bind(source =\u003e source.LastName, target =\u003e target.Surname);\n\tconfig.Bind(target =\u003e source.Emails, typeof(List\u003cstring\u003e));\n});\n\nvar person = new Person\n{\n\tId = Guid.NewGuid(),\n\tFirstName = \"John\",\n\tLastName = \"Doe\",\n\tEmails = new List\u003cstring\u003e{\"support@tinymapper.net\", \"MyEmail@tinymapper.net\"}\n};\n\nvar personDto = TinyMapper.Map\u003cPersonDto\u003e(person);\n```\n\n`TinyMapper` supports the following platforms:\n* .Net 3.5+\n* [.NET Standard 1.3](https://docs.microsoft.com/en-us/dotnet/standard/net-standard)\n* .NET Core\n* Mono\n\n## What to read\n\n * [TinyMapper: yet another object to object mapper for .net](http://www.codeproject.com/Articles/886420/TinyMapper-yet-another-object-to-object-mapper-for)\n * [Complex mapping](https://github.com/TinyMapper/TinyMapper/wiki/Complex-mapping)\n * [How to create custom mapping](https://github.com/TinyMapper/TinyMapper/wiki/Custom-mapping)\n \n## Contributors\nA big thanks to all of TinyMapper's contributors:\n \n * [nzaugg](https://github.com/nzaugg)\n * [Sdzeng](https://github.com/Sdzeng)\n * [iEmiya](https://github.com/iEmiya)\n * [lijaso](https://github.com/lijaso)\n * [nomailme](https://github.com/nomailme)\n * [Skaiol](https://github.com/Skaiol)\n * [Sufflavus](https://github.com/Sufflavus)\n * [qihangnet](https://github.com/qihangnet)\n * [teknogecko](https://github.com/teknogecko)\n * [Samtrion](https://github.com/Samtrion)\n * [DerHulk](https://github.com/DerHulk)\n","funding_links":[],"categories":["others","C# #","C\\#","Object to object mapping","对象到对象映射","Uncategorized","C#"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTinyMapper%2FTinyMapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTinyMapper%2FTinyMapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTinyMapper%2FTinyMapper/lists"}