{"id":21722932,"url":"https://github.com/calabonga/calabonga.rulesvalidator","last_synced_at":"2025-10-07T11:31:15.050Z","repository":{"id":38032858,"uuid":"210079580","full_name":"Calabonga/Calabonga.RulesValidator","owner":"Calabonga","description":"Object validation with validation rules","archived":false,"fork":false,"pushed_at":"2025-01-16T04:16:04.000Z","size":642,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-16T05:19:34.598Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Calabonga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":"https://www.calabonga.net/site/thanks"}},"created_at":"2019-09-22T02:30:26.000Z","updated_at":"2025-01-16T04:16:05.000Z","dependencies_parsed_at":"2024-11-26T03:18:03.791Z","dependency_job_id":null,"html_url":"https://github.com/Calabonga/Calabonga.RulesValidator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calabonga%2FCalabonga.RulesValidator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calabonga%2FCalabonga.RulesValidator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calabonga%2FCalabonga.RulesValidator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calabonga%2FCalabonga.RulesValidator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Calabonga","download_url":"https://codeload.github.com/Calabonga/Calabonga.RulesValidator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235621565,"owners_count":19019522,"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-11-26T02:34:33.613Z","updated_at":"2025-10-07T11:31:09.711Z","avatar_url":"https://github.com/Calabonga.png","language":"C#","funding_links":["https://www.calabonga.net/site/thanks"],"categories":[],"sub_categories":[],"readme":"# Calabonga.RulesValidator\n\n## Проверка объекта через правила\nВалидировать объект, например, перед сохранением в базу данных, можно разными способами. Есть способ \"Простой\", обычно все им и пользуются. Хочу показать  \"Продвинутый\" способ. И не только показать сам способ, но и его реализацию. И даже презентовать новый nuget-пакет.\n\n![Presentation](https://github.com/Calabonga/Calabonga.RulesValidator/blob/master/Whatnot/presentation.PNG)\n\n## Видео презентация\nПосмотреь видео вы можете [на канале youtube](https://youtu.be/qprdRbMgEZU). На видео показан процесс создания IRulesValidator\u003cT\u003e, а также пример использования уже готового nuget-пакета [Calabonga.RulesVlidator](https://www.nuget.org/packages/Calabonga.RulesValidator/)  \n\n## Screenshots \n\nThis is a sample for demo purposes. Please, see in repository on GitHub.com\n\n### Register your rules in Dependency Injection container.\n\u003cimg width=\"643\" alt=\"2\" src=\"https://github.com/user-attachments/assets/e036fbbf-00a6-470d-8542-de888de49c53\" /\u003e\n\n### Get validator from container\n```csharp\nvar validator = container.GetRequiredService\u003cPersonValidator\u003e();\n```\n\n### Run your validator\n\u003cimg width=\"625\" alt=\"3\" src=\"https://github.com/user-attachments/assets/be3dc17d-ba34-4842-8bc2-edcce4e94984\" /\u003e\n\n### The results can be like this\n\u003cimg width=\"747\" alt=\"1\" src=\"https://github.com/user-attachments/assets/c7870fec-0990-4d78-a0ff-049359e05d58\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalabonga%2Fcalabonga.rulesvalidator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalabonga%2Fcalabonga.rulesvalidator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalabonga%2Fcalabonga.rulesvalidator/lists"}