Thunder.Web.Mvc
2.1.0
dotnet add package Thunder.Web.Mvc --version 2.1.0
NuGet\Install-Package Thunder.Web.Mvc -Version 2.1.0
<PackageReference Include="Thunder.Web.Mvc" Version="2.1.0" />
<PackageVersion Include="Thunder.Web.Mvc" Version="2.1.0" />
<PackageReference Include="Thunder.Web.Mvc" />
paket add Thunder.Web.Mvc --version 2.1.0
#r "nuget: Thunder.Web.Mvc, 2.1.0"
#:package Thunder.Web.Mvc@2.1.0
#addin nuget:?package=Thunder.Web.Mvc&version=2.1.0
#tool nuget:?package=Thunder.Web.Mvc&version=2.1.0
Thunder
Conjunto de bibliotecas utilitárias para .NET Framework 4.8: extensões de tipos, validações brasileiras (CPF/CNPJ/e-mail/CEP/telefone), padrões de acesso a dados sobre NHibernate e Entity Framework, e HTML helpers para ASP.NET MVC 5.
Pacotes
| Pacote | Versão | Downloads | Descrição |
|---|---|---|---|
| Thunder | Extensões de tipos, validações brasileiras (CPF/CNPJ/e-mail/CEP/telefone), formatação, paginação, criptografia/hash e notificações. | ||
| Thunder.NHibernate | Padrão Repository/ActiveRecord sobre NHibernate 5.5+, gestão de sessão e listeners de auditoria (Created/Updated). | ||
| Thunder.Web.Mvc | HTML helpers, filtros e model binders para ASP.NET MVC 5. | ||
| Thunder.EntityFramework | Padrão Repository sobre Entity Framework 6. |
Instalação
Os pacotes usam o formato clássico packages.config. A forma recomendada de instalar é pelo
Package Manager Console do Visual Studio:
Install-Package Thunder
Install-Package Thunder.NHibernate
Install-Package Thunder.Web.Mvc
Install-Package Thunder.EntityFramework
Para restaurar os pacotes de uma solution já configurada (build local ou CI), use o nuget.exe:
nuget restore Thunder.sln
Quickstart
using Thunder;
using Thunder.Extensions;
using Thunder.Collections.Extensions;
// CPF/CNPJ: validar e formatar
var cpf = "53778321676";
if (cpf.IsCpf())
Console.WriteLine(cpf.Format(FormatType.Cpf)); // 537.783.216-76
var cnpj = "33846757000150";
if (cnpj.IsCnpj())
Console.WriteLine(cnpj.Format(FormatType.Cnpj)); // 33.846.757/0001-50
// Paginação: página 0 (primeira), 20 itens por página
IEnumerable<Produto> produtos = repositorio.Listar();
var pagina = produtos.Paging(0, 20);
Thunder.NHibernate: listener de auditoria
Para preencher automaticamente as propriedades de criação/atualização (Created/Updated),
registre o listener na configuração da session-factory:
<session-factory>
...
<listener type="pre-update" class="Thunder.NHibernate.Pattern.CreatedAndUpdatedPropertyEventListener, Thunder.NHibernate"/>
<listener type="pre-insert" class="Thunder.NHibernate.Pattern.CreatedAndUpdatedPropertyEventListener, Thunder.NHibernate"/>
</session-factory>
Frameworks suportados
| Pacote | .NET Framework |
|---|---|
| Thunder | 4.8 |
| Thunder.NHibernate | 4.8 |
| Thunder.Web.Mvc | 4.8 |
| Thunder.EntityFramework | 4.8 |
Mais informações
Licença
Distribuído sob a licença MIT. Veja license.txt.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- log4net (>= 2.0.17)
- Microsoft.AspNet.Mvc (>= 5.3.0)
- Microsoft.AspNet.Razor (>= 3.3.0)
- Microsoft.AspNet.WebPages (>= 3.3.0)
- Microsoft.Web.Infrastructure (>= 2.0.0)
- Newtonsoft.Json (>= 13.0.4)
- Thunder (>= 2.1.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Thunder.Web.Mvc:
| Package | Downloads |
|---|---|
|
Xerneas.Template
O Xernas Template foi desenvolvido com a finalidade de ajudar no "start" de um projeto que necessite de funcionalidades como, permissão de acesso, controle de usuário, controle de perfil de usuário e gerenciamento de módulos de um sistema. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.1.0 | 95 | 7/15/2026 |
| 2.0.0 | 92 | 7/15/2026 |
| 1.9.0 | 94 | 7/14/2026 |
| 1.7.0 | 560 | 1/30/2025 |
| 1.6.3 | 2,110 | 1/10/2023 |
| 1.6.2 | 2,476 | 11/16/2020 |
| 1.6.1 | 1,611 | 4/17/2020 |
| 1.6.0 | 1,639 | 4/8/2020 |
| 1.5.9 | 2,596 | 2/22/2019 |
| 1.5.8 | 2,023 | 8/29/2018 |
| 1.5.7 | 2,192 | 5/28/2018 |
| 1.5.6 | 2,535 | 3/15/2018 |
| 1.5.5 | 3,914 | 7/20/2017 |
| 1.5.4 | 2,338 | 3/7/2017 |
| 1.5.3 | 2,287 | 3/7/2017 |
| 1.5.2 | 2,585 | 7/21/2016 |
| 1.5.0 | 2,932 | 2/3/2016 |
| 1.4.9 | 2,566 | 9/21/2015 |
| 1.4.8 | 2,590 | 8/28/2015 |
| 1.4.7 | 2,452 | 4/15/2015 |
Alinhamento à linha 2.1. Empacotamento: README embutido, ícone, SourceLink e símbolos snupkg. Sem mudança de comportamento própria. CHANGELOG: https://github.com/adrianocaldeira/thunder/blob/master/CHANGELOG.md