{"id":26116921,"url":"https://github.com/ten-james/dtogenerator","last_synced_at":"2026-02-19T12:02:08.833Z","repository":{"id":281486533,"uuid":"945431828","full_name":"Ten-James/DtoGenerator","owner":"Ten-James","description":"DTO generator library","archived":false,"fork":false,"pushed_at":"2025-03-10T20:42:13.000Z","size":50,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-27T12:25:17.338Z","etag":null,"topics":["csharp","dotnet","dtos","generator","nuget","package"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/Ten-James.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-09T12:10:37.000Z","updated_at":"2025-03-10T20:41:00.000Z","dependencies_parsed_at":"2025-03-09T12:33:30.313Z","dependency_job_id":"3f715a88-7ead-496d-a478-62c174932f06","html_url":"https://github.com/Ten-James/DtoGenerator","commit_stats":null,"previous_names":["ten-james/dtogenerator"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Ten-James/DtoGenerator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ten-James%2FDtoGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ten-James%2FDtoGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ten-James%2FDtoGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ten-James%2FDtoGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ten-James","download_url":"https://codeload.github.com/Ten-James/DtoGenerator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ten-James%2FDtoGenerator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29612509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T10:52:55.328Z","status":"ssl_error","status_checked_at":"2026-02-19T10:52:26.323Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["csharp","dotnet","dtos","generator","nuget","package"],"created_at":"2025-03-10T10:22:48.297Z","updated_at":"2026-02-19T12:02:08.805Z","avatar_url":"https://github.com/Ten-James.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dto Generator\n\nStop writing boilerplate code for your DTOs. This package will generate them for you.\n\n[Read more in Our Docs](https://ten-james.github.io/DtoGenerator/)\n\n# Example\n\n```csharp\n\n...\nusing TenJames.DtoGenerator;\n...\n\n\n[GenerateDto(DtoType.All)]\nclass User \n{\n    [MapTo(typeof(string), \"src.ToString()\")]\n    [DtoVisibility(DtoType.AllRead | DtoType.Update)]\n    public Guid Id { get; set; }\n    \n    public string Name { get; set; }\n    \n    [DtoIgnore]\n    public string Password { get; set; }\n    \n}\n\n\n// will generate the following DTOs\n\nclass UserReadDto\n{\n    [Required] public string Id { get; set; }\n    [Required] public string Name { get; set; }\n}\n\nclass UserReadDetailDto\n{\n    [Required] public string Id { get; set; }\n    [Required] public string Name { get; set; }\n}\n\nclass UserCreateDto\n{\n    [Required] public string Name { get; set; }\n}\n\nclass UserUpdateDto\n{\n    [Required] public string Name { get; set; }\n}\n\n \n\n```\n\n# Attributes\n\nMain usage ate defined with attrubutes. The following attributes are available:\n\n- `GenerateDtoAttribute`: Entry point for the generator. It will generate a DTO for the class where it is defined.\n- `DtoIgnoreAttribute`: Ignore a property from the DTO generation.\n- `MapToAttribute`: Mapping a property with function to the DTO (read and detail)\n- `MapFromAttribute`: Mapping a property with function from the DTO (write)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ften-james%2Fdtogenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ften-james%2Fdtogenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ften-james%2Fdtogenerator/lists"}