MvcCore Utilidades
MvcCore Utilidades is a comprehensive ASP.NET Core MVC utilities library built on .NET 10.0 that provides essential tools and helpers for modern web application development. It demonstrates best practices for common web development tasks including file uploads, caching, encryption, email sending, and session management.What is MvcCore Utilidades?
MvcCore Utilidades is a production-ready ASP.NET Core MVC application that showcases practical implementations of frequently needed utilities in web development. It serves both as a learning resource and as a foundation for building robust web applications. The project follows modern ASP.NET Core patterns with:- Dependency injection for all services
- Repository pattern for data access
- Helper classes for cross-cutting concerns
- View Components for reusable UI elements
- Clean separation of concerns
Key Features
File Management
Upload and manage files with the HelperPathProvider utility that handles physical and URL path mapping for different file types (images, uploads, invoices, temporary files).
Cryptography
Secure data encryption with HelperCryptography supporting both basic SHA1 encryption and advanced SHA512 with salt for password hashing and data protection.
Caching Strategies
Implement both in-memory caching with
IMemoryCache and distributed caching with configurable expiration times and cache invalidation strategies.Email Integration
Send emails through SMTP with full configuration support, including SSL, authentication, and HTML content via the
MailsController.Session Management
Built-in session handling for user authentication and state management across requests.
Repository Pattern
Data access abstraction with
RepositoryCoches demonstrating clean separation between business logic and data layer.View Components
Reusable UI components like
MenuCochesViewComponent for building modular and maintainable views.Partial Views & AJAX
Dynamic content loading with partial views for responsive user experiences.
Architecture Overview
The application follows a clean architecture pattern:Core Components
Controllers
- HomeController: Session management and authentication
- UploadFilesController: File upload handling
- CifradosController: Encryption operations
- CachingController: Caching demonstrations
- MailsController: Email sending functionality
- CochesController: CRUD operations with repository pattern
Helpers
- HelperPathProvider: Path resolution for file operations
- HelperCryptography: Encryption and hashing utilities
Repositories
- RepositoryCoches: Data access layer for Car entities
View Components
- MenuCochesViewComponent: Dynamic car menu rendering
Technology Stack
MvcCore Utilidades is built on the latest .NET technologies:
- .NET 10.0: The latest version of .NET with enhanced performance and new features
- ASP.NET Core MVC: Modern web framework with razor views
- Microsoft.Extensions.Caching.Memory: In-memory caching support
- System.Net.Mail: Email sending capabilities
- System.Security.Cryptography: Encryption and hashing
Use Cases
MvcCore Utilidades is ideal for:- Learning ASP.NET Core: Study real-world implementations of common patterns
- Starter Templates: Bootstrap new projects with proven utilities
- Enterprise Applications: Production-ready components for business applications
- Rapid Prototyping: Quickly implement authentication, file uploads, and caching
- Code Reference: Examples of best practices for ASP.NET Core development
Project Structure
Next Steps
Installation
Get started by setting up MvcCore Utilidades in your environment
Quick Start
Jump right in with practical examples and code snippets