{"id":24167471,"url":"https://github.com/i-rzr-i/entitymaxlengthtrim","last_synced_at":"2025-09-20T11:32:41.116Z","repository":{"id":144648809,"uuid":"537565763","full_name":"I-RzR-I/EntityMaxLengthTrim","owner":"I-RzR-I","description":"One important thing about this repository, you have the possibility to avoid database exceptions related to exceeding the limit of the maximum allowed length of the string type columns. To specify the maximum allowed string length you can use data annotation attributes predefined in `System.ComponentModel.DataAnnotations` or a new custom attribute.","archived":false,"fork":false,"pushed_at":"2025-01-12T17:30:12.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T18:31:30.958Z","etag":null,"topics":["database","datatype","db","dto","entity","length","maximum","maxlength","model","parse","split","string","trim","truncate"],"latest_commit_sha":null,"homepage":"","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/I-RzR-I.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-16T17:54:34.000Z","updated_at":"2025-01-12T17:29:50.000Z","dependencies_parsed_at":"2025-01-12T18:34:28.444Z","dependency_job_id":null,"html_url":"https://github.com/I-RzR-I/EntityMaxLengthTrim","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/I-RzR-I%2FEntityMaxLengthTrim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/I-RzR-I%2FEntityMaxLengthTrim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/I-RzR-I%2FEntityMaxLengthTrim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/I-RzR-I%2FEntityMaxLengthTrim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/I-RzR-I","download_url":"https://codeload.github.com/I-RzR-I/EntityMaxLengthTrim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233660092,"owners_count":18710026,"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":["database","datatype","db","dto","entity","length","maximum","maxlength","model","parse","split","string","trim","truncate"],"created_at":"2025-01-12T21:13:52.159Z","updated_at":"2025-09-20T11:32:35.754Z","avatar_url":"https://github.com/I-RzR-I.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e **Note** This repository is developed for .netstandard1.5+ and net framework 4.5\n\n[![NuGet Version](https://img.shields.io/nuget/v/EntityMaxLengthTrim.svg?style=flat\u0026logo=nuget)](https://www.nuget.org/packages/EntityMaxLengthTrim/)\n[![Nuget Downloads](https://img.shields.io/nuget/dt/EntityMaxLengthTrim.svg?style=flat\u0026logo=nuget)](https://www.nuget.org/packages/EntityMaxLengthTrim)\n\nOne important thing about this repository is that you can truncate input string in the fields/properties at the maximum allowed length from DB. To specify the maximum allowed string length you can use data annotation attributes predefined in `System.ComponentModel.DataAnnotations` or a new custom attribute. \n\nThe maximum allowed length will be searched in the attributes(you may use one of these):\n* `MaxLengthAttribute` -\u003e ([MaxLength(**x**)]);\n* `StringLengthAttribute` -\u003e ([StringLength(**x**)]);\n* `MaxAllowedLengthAttribute` -\u003e ([MaxAllowedLength(**x**)]).\n\n\u003e To get acquainted with a more detailed description, please check the content table at [the first point](docs/usage.md).\n\nOnce you use this repository, you have the possibility to avoid database exceptions related to exceeding the limit of the maximum allowed length and the string type columns.\n\nNo additional components or packs are required for use. So, it only needs to be added/installed in the project and can be used instantly.\n\n**In case you wish to use it in your project, u can install the package from \u003ca href=\"https://www.nuget.org/packages/EntityMaxLengthTrim\" target=\"_blank\"\u003enuget.org\u003c/a\u003e** or specify what version you want:\n\n\n\u003e `Install-Package EntityMaxLengthTrim -Version x.x.x.x`\n\n## Content\n1. [USING](docs/usage.md)\n1. [CHANGELOG](docs/CHANGELOG.md)\n1. [BRANCH-GUIDE](docs/branch-guide.md)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi-rzr-i%2Fentitymaxlengthtrim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fi-rzr-i%2Fentitymaxlengthtrim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi-rzr-i%2Fentitymaxlengthtrim/lists"}