{"id":17046547,"url":"https://github.com/tkellogg/cortez","last_synced_at":"2026-04-29T22:03:56.355Z","repository":{"id":6282295,"uuid":"7516353","full_name":"tkellogg/Cortez","owner":"tkellogg","description":"A fast object-to-object mapper that can generate Linq queries","archived":false,"fork":false,"pushed_at":"2013-01-14T01:05:54.000Z","size":1276,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-28T09:45:10.785Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tkellogg.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-09T06:53:52.000Z","updated_at":"2022-01-04T13:23:00.000Z","dependencies_parsed_at":"2022-08-29T19:32:09.200Z","dependency_job_id":null,"html_url":"https://github.com/tkellogg/Cortez","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkellogg%2FCortez","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkellogg%2FCortez/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkellogg%2FCortez/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkellogg%2FCortez/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkellogg","download_url":"https://codeload.github.com/tkellogg/Cortez/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245049466,"owners_count":20552687,"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-10-14T09:46:41.294Z","updated_at":"2026-04-29T22:03:51.330Z","avatar_url":"https://github.com/tkellogg.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"The LINQ Fast \u0026 Friendly Object-To-Object Mapper\n================================================\n\nCortez is as fast as it gets for object-to-object mappers. It uses the\nExpression tree enhancements from .NET 4.0 to generate functions \nto map one object to another.\n\n```csharp\nvar viewModel = Mapper.Instance.Map\u003cUser, UserViewModel\u003e(existingUser);\n```\n\nLINQ to Databases\n-----------------\n\nCalling Cortez an _\"Object to Object\"_ mapper is a bit of a misnomer since\nthe source doesn't have to be an object. Since mappings are generated from\nExpression trees, you can also retrieve just the expression tree, which \nmakes Cortez _really_ convenient to use with LINQ.\n\n```csharp\n// UserViewModel is populated directly from the database, no user object is instantiated. \nvar viewModels = usersDataSource.AsQueryable()\n    .Where(u =\u003e u.Name == \"Jack\")\n    .Select(Mapper.Instance.GetExpression\u003cUser, UserViewModel\u003e())\n\t\t.ToList();\n```\n\nInstalling Cortez\n------------\n\nIt's a single file, just [download it here][1] and include it in your\nproject.\n\n [1]: https://github.com/tkellogg/Cortez/blob/master/Cortez/Mapper.cs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkellogg%2Fcortez","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkellogg%2Fcortez","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkellogg%2Fcortez/lists"}