{"id":21408546,"url":"https://github.com/anzolin/anzolinnetdevpack","last_synced_at":"2026-05-10T03:03:04.878Z","repository":{"id":47743487,"uuid":"395006438","full_name":"anzolin/AnzolinNetDevPack","owner":"anzolin","description":"A NuGet Package that contains a group of help and validation classes that will help you in your ability to produce applications in an easier way.","archived":false,"fork":false,"pushed_at":"2023-02-09T13:01:57.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-29T03:17:06.308Z","etag":null,"topics":["dotnet","dotnet-core","netcore","netstandard21","nuget"],"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/anzolin.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":"2021-08-11T13:53:17.000Z","updated_at":"2023-11-25T19:17:29.000Z","dependencies_parsed_at":"2025-01-23T04:23:29.125Z","dependency_job_id":"dd56f15a-7ea1-4907-9869-0652470236c2","html_url":"https://github.com/anzolin/AnzolinNetDevPack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anzolin/AnzolinNetDevPack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzolin%2FAnzolinNetDevPack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzolin%2FAnzolinNetDevPack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzolin%2FAnzolinNetDevPack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzolin%2FAnzolinNetDevPack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anzolin","download_url":"https://codeload.github.com/anzolin/AnzolinNetDevPack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anzolin%2FAnzolinNetDevPack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264324319,"owners_count":23590841,"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":["dotnet","dotnet-core","netcore","netstandard21","nuget"],"created_at":"2024-11-22T17:17:00.777Z","updated_at":"2026-05-10T03:02:59.837Z","avatar_url":"https://github.com/anzolin.png","language":"C#","funding_links":["https://www.paypal.com/donate?business=DN2VPNW42RTXY\u0026no_recurring=0\u0026currency_code=BRL","https://www.buymeacoffee.com/anzolin"],"categories":[],"sub_categories":[],"readme":"\u003c!-- PROJECT SHIELDS --\u003e\n\u003c!--\n*** I'm using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n--\u003e\n[![Contributors][contributors-shield]][contributors-url]\n[![Watchers][watchers-shield]][watchers-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Forks][forks-shield]][forks-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n---\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n### Table of Contents\n\u003col\u003e\n  \u003cli\u003e\u003ca href=\"#what-is\"\u003eWhat is?\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#how-it-works\"\u003eHow it works?\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#examples\"\u003eExamples\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#how-can-i-contribute\"\u003eHow can I contribute?\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#about-the-author\"\u003eAbout the author\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"#donate\"\u003eDonate\u003c/a\u003e\u003c/li\u003e\n\u003c/ol\u003e\n\n---\n\n\n## What is?\n\n**AnzolinNetDevPack** is a NuGet Package that contains a group of help and validation classes that will help you in your ability to produce applications in an easier way.\n\n| Current version | Downloads |\n|---|---|\n| [![NuGet](https://img.shields.io/nuget/v/AnzolinNetDevPack?style=for-the-badge)](https://www.nuget.org/packages/AnzolinNetDevPack/) | [![NuGet](https://img.shields.io/nuget/dt/AnzolinNetDevPack?style=for-the-badge)](https://www.nuget.org/packages/AnzolinNetDevPack/) |\n\nThis project is an update of [Anzolin.Net.NuGet](https://github.com/anzolin/Anzolin.Net.NuGet) which I decided to change the name, adjust a project pattern and also unify the nuget packages into a single package.\n\nAlso see [my NuGet Profile](https://www.nuget.org/profiles/anzolin) to find more interesting packages.\n\n\n## Installation\n\nJust add a dependency in your .csproj file to get the nuget:\n\n```xml\n\u003cPackageReference Include=\"AnzolinNetDevPack\" Version=\"1.4.0\" /\u003e\n```\n\nOr from a command prompt:\n\n```bash\ndotnet add package AnzolinNetDevPack\n```\n\n```bash\nInstall-Package AnzolinNetDevPack\n```\n\n\n## How it works?\n\n| Class | Function | Parameters | Summary `pt-br` | Summary `en-us` |\n|---|---|---|---|---|\n| **DateHelper** | `DateDiff` | **IntervalType** type, **DateTime** fromDate, **DateTime** toDate | Retorna entre datas de acordo com o tipo de intervalo escolhido. | |\n| **DateTimeHelper** | `GetDateTimeBrasilia` | N/A | Retorna a data/hora de agora de Brasília (\"America/Sao_Paulo\"). |  |\n| **DateTimeHelper** | `GetDateTimeByTimeZone` | **string** windowsOrIanaTimeZoneId | Retorna a data/hora de agora de acordo com o timezone informado, exemplo: \"America/Sao_Paulo\". |  |\n| **EnumHelper** | `GetValue` | **object** aEnum | Retorna o valor inteiro do objeto enum informado. |  |\n| **EnumHelper** | `GetText` | **object** aEnum | Retorna o valor texto do objeto enum informado. |  |\n| **EnumHelper** | `GetText` | **Type** aEnumType, **int** aKey | Retorna o valor texto do objeto enum informado. |  |\n| **EnumHelper** | `GetText` | **Type** aEnumType, **string** vEnumName | Retorna o valor texto do objeto enum informado. |  |\n| **EnumHelper** | `GetValueDisplayDictionary` | **Type** aEnumType | Retorna um dicionário do tipo int, string do objeto enum informado. |  |\n| **EnumHelper** | `GetSelectListItems` | **Type** aEnumType, **int?** value | Retorna uma lista do tipo SelectListItem do objeto enum informado. Para ser utilizado em lookups. |  |\n| **HangfireForMySqlHelper** | `Enqueue` | **Expression** methodCall | Enfilera um trabalho. |  |\n| **HangfireForMySqlHelper** | `GetJobDetails` | **MySqlStorage** storage, **string** jobId | Retorna os detalhes do trabalho informado. |  |\n| **HangfireForMySqlHelper** | `GetJobResult` | **MySqlStorage** storage, **string** jobId | Retorna o resultado da execução do trabalho informado. |  |\n| **HangfireForSqlServerHelper** | `Enqueue` | **Expression** methodCall | Enfilera um trabalho. |  |\n| **HangfireForSqlServerHelper** | `GetJobDetails` | **SqlServerStorage** storage, **string** jobId | Retorna os detalhes do trabalho informado. |  |\n| **HangfireForSqlServerHelper** | `GetJobResult` | **SqlServerStorage** storage, **string** jobId | Retorna o resultado da execução do trabalho informado. |  |\n| **SearchHelper** | `ApplyPaging` | **IEnumerable** enumerable, **int** count, **int** pageSize, **int?** page | Aplica uma paginação para o IEnumerable TModel. |  |\n| **StringHelper** | `RemoveMask` | **string** value | Remove todos caracteres, deixando apenas letras e números. |  |\n| **StringHelper** | `AddMask` | **MaskType** type, **string** value | Aplica a máscara escolhida. |  |\n| **StringHelper** | `OnlyNumbers` | **string** value | Remove todas letras, deixando apenas números. |  |\n| **StringHelper** | `FirstChatToUpper` | **string** value | Aplica o primeiro caracter da string como maiúsculo. | |\n| **StringHelper** | `RemoveAccents` | **string** value | Remove acentuações. | |\n| **StringHelper** | `SizeSuffix` | **string** value, **int** decimalPlaces | Converte e formata um número em tamanho de arquivo. | |\n| **StringHelper** | `GenerateRandomPassword` | **PasswordOptions** opts | Gera uma senha aleatória respeitando os requisitos de força fornecidos. | |\n| **TimeHelper** | `ConvertTime` | **string** time, **TimeHelper.Type** returnType | Converte uma string no formato \"hh:mm:ss\" para o tipo informado pelo parâmetro \"returnType\". |  |\n| **TimeHelper** | `ConvertTime` | **string** time | Converte uma string no formato \"hh:mm:ss\" para um DateTime contendo a hora, em que o \"dia\", \"mes\" e \"ano\" são de um \"DateTime.MinValue\". |  |\n| **TimeHelper** | `GetTimeAsString` | **double** time, **TimeHelper.Type** fromType | Obtêm uma hora no formato \"hh:mm:ss\" à partir tempo e tipo de tempo informados. |  |\n| **TimeHelper** | `GetTimeAsArray` | **string** time | Obtêm uma hora como um array de 3 posições representando horas, minutos e segundos respectivamente, à partir tempo informado. Caso ocorra algum erro retorna nulo. |  |\n| **TimeHelper** | `GetTime` | **DateTimeOffset** data | Retorna somente a informação de hora, minuto e segundo de uma data completa. |  |\n| **TimeHelper** | `GetTime` | **DateTime** data | Retorna somente a informação de hora, minuto e segundo de uma data completa. |  |\n| **TimeHelper** | `Truncate` | **DateTimeOffset** data | Retorna a data e hora completa, sendo o tempo absoluto. |  |\n| **CpfCnpjValidator** | `IsValid` | **string** cpfCnpj | Valida o documento informado. |  |\n| **CpfCnpjValidator** | `IsCpf` | **string** cpf | Valida se é um CPF. |  |\n| **CpfCnpjValidator** | `IsCnpj` | **string** cnpj | Valida se é CNPJ. |  |\n| **EmailValidator** | `IsValidEmail` | **string** email | Valida se é um e-mail. |  |\n| **Services** | `ConsultaCnpj` | **string** cnpj | Consulta os dados da pessoa jurídica através do Cnpj informado. |  |\n| **Services** | `ConsultaCnpjAsync` | **string** cnpj | Consulta os dados da pessoa jurídica através do Cnpj informado. |  |\n\n\n## Examples\n\nThe application containing all the examples is under development but you can find some of them.\n\nI recommend that you explore the code to understand what it covers, it's easy to realize.\n\n\n## How can I contribute?\n\nIf you want to help the project, improving it or creating something new, welcome. This project was created to be a home of useful and reusable pieces of code for the .NET community. So if you have any code snippet that is useful, clean, decoupled and tested, and want to contribute to this goal, please make a [pull request](https://github.com/anzolin/AnzolinNetDevPack/pulls)!\n\n\n## License\n\nThis project is [MIT Licensed](https://github.com/anzolin/AnzolinNetDevPack/blob/master/LICENSE).\n\n  \n## About the author\n\nHello everyone, my name is Diego Anzolin Ferreira. I'm a .NET developer from Brazil. I hope you will enjoy this project as much as I enjoy developing it. If you have any problems, you can post a [GitHub issue](https://github.com/anzolin/AnzolinNetDevPack/issues). You can reach me out at diego@anzolin.com.br.\n\n\n## Donate\n  \nWant to help me keep creating open source projects, make a donation:\n\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg?style=for-the-badge)](https://www.paypal.com/donate?business=DN2VPNW42RTXY\u0026no_recurring=0\u0026currency_code=BRL) [![Donate](https://img.shields.io/badge/-buy_me_a%C2%A0coffee-gray?logo=buy-me-a-coffee\u0026style=for-the-badge)](https://www.buymeacoffee.com/anzolin)\n\nThank you!\n\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/anzolin/AnzolinNetDevPack.svg?style=for-the-badge\n[contributors-url]: https://github.com/anzolin/AnzolinNetDevPack/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/anzolin/AnzolinNetDevPack.svg?style=for-the-badge\n[forks-url]: https://github.com/anzolin/AnzolinNetDevPack/network/members\n[watchers-shield]: https://img.shields.io/github/watchers/anzolin/AnzolinNetDevPack.svg?style=for-the-badge\n[watchers-url]: https://github.com/anzolin/AnzolinNetDevPack/watchers\n[stars-shield]: https://img.shields.io/github/stars/anzolin/AnzolinNetDevPack.svg?style=for-the-badge\n[stars-url]: https://github.com/anzolin/AnzolinNetDevPack/stargazers\n[issues-shield]: https://img.shields.io/github/issues/anzolin/AnzolinNetDevPack.svg?style=for-the-badge\n[issues-url]: https://github.com/anzolin/AnzolinNetDevPack/issues\n[license-shield]: https://img.shields.io/github/license/anzolin/AnzolinNetDevPack.svg?style=for-the-badge\n[license-url]: https://github.com/anzolin/AnzolinNetDevPack/blob/master/LICENSE.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanzolin%2Fanzolinnetdevpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanzolin%2Fanzolinnetdevpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanzolin%2Fanzolinnetdevpack/lists"}