This ASP.NET Core MVC project demonstrates how to manage one-to-many relationships using Entity Framework Core, handle code-first migrations, and apply performance optimization techniques such as AsNoTracking, pagination, and in-memory caching.
AutoMapper simplifies object mapping in .NET, but using it with Dependency Injection can cause ambiguous method call errors. Fix this by using explicit types, avoiding objects, and defining clear mapping profiles.
In modern web development, one of the key challenges when working with databases is efficiently managing database connections.
If you're working with NuGet in Visual Studio and encountering issues due to the NuGet v3 API being temporarily unavailable, you're not alone. Many developers have experienced downtime with the NuGet v3 API, leading to errors and hindering package management workflows.
Eager Loading in ASP.NET Core Web API is a technique using Entity Framework Core to load related data (like child entities) alongside the main entity in a single query. It helps improve performance by reducing database round-trip use.Include() and .ThenInclude(). Ideal for situations where related data is always needed.
Learn how to implement Lazy Loading in ASP.NET Core Web API using Entity Framework Core. This complete guide covers configuration, models, DTOs, controllers, and best practices with a working example.
Explicit Loading in ASP.NET Core Web API is a technique used to manually retrieve related data from the database when needed, using LoadAsync() on navigation properties. Unlike eager loading (Include()) or lazy loading, explicit loading provides better control over database queries, improving performance and efficiency. It is useful when related data is conditionally required.
Learn how to integrate Stripe Payment Gateway into an ASP.NET Core MVC application, enabling secure online payments with Stripe Checkout. The solution covers API setup, payment session creation, and handling successful or canceled payments.
Discover key design patterns like Repository, Unit of Work, Dependency Injection, Factory, Singleton, and Command to enhance the scalability, maintainability, and testability of your ASP.NET MVC applications.
This article covers Entity Framework Core, query optimization, caching strategies, lazy and eager loading, and best practices to enhance your MVC application's efficiency.
This article explains the connected and disconnected scenarios in Entity Framework Core for ASP.NET Core MVC applications. It covers how EF Core handles data in these scenarios, including change tracking, entity states, and managing database contexts.
This article demonstrates how to implement Dependency Injection (DI) using Autofac in an ASP.NET MVC application and integrate Entity Framework for database operations, including migrations.
Cross-site scripting (XSS) is a common web application vulnerability where malicious scripts are injected and executed in a user's browser. To prevent XSS in ASP.NET Core Web APIs, techniques like input validation, output encoding, and sanitizing user input can safeguard against potential attacks.
This ASP.NET Core MVC project demonstrates essential techniques to prevent DoS attacks, including rate limiting, request size limiting, and Google reCAPTCHA integration. The solution ensures security by controlling incoming requests, validating inputs, and preventing automated attacks while maintaining application performance.
Implement file upload and download functionality in an ASP.NET Core MVC application. This guide covers project setup, model creation, controller logic, view implementation, and security best practices. You'll create a simple app for managing file uploads and downloads, including file validation and storage.
This guide explores advanced Dependency Injection (DI) in .NET Core through an e-commerce application example. It covers custom service lifetimes, scopes, and managing complex dependency graphs, demonstrating how to build scalable, maintainable, and loosely coupled applications using DI techniques.
Build an ASP.NET Core MVC vehicle management page that uses jQuery AJAX to add vehicles, Entity Framework Core to persist data, and SQLite as the database.
Implementing Continuous Integration and Continuous Deployment (CI/CD) for SQL Server databases ensures that database changes are automatically built, tested, and deployed to various environments.
Deploy ASP.NET MVC apps on Azure via Azure DevOps & GitHub. Set up CI/CD pipelines for seamless integration & deployment. Create Azure App Service, link GitHub repos, configure build & release pipelines for automated build, test, & deployment. Monitor deployments in Azure Portal for efficient app management.
Learn how to implement a robust audit trail in an ASP.NET Core Web API using Entity Framework Core and SQL Server. This comprehensive guide covers setting up the project, defining data models like Products and AuditLogs, configuring the database context, applying migrations, and creating CRUD operations.
Learn how to implement a robust global search feature in ASP.NET Core MVC. This tutorial covers setting up models like Product and Category, configuring the database with Entity Framework, seeding initial data, creating a search service for querying both products and categories, and developing responsive views with detailed information.
Integrate Google Authentication into your ASP.NET Core MVC application for secure and easy user login. Follow steps to create a project in Visual Studio, configure Google API Console, install necessary NuGet packages, update Startup. cs, and handle user authentication and profile management seamlessly.
Learn how to integrate the Gmail server for sending emails in ASP.NET Core MVC using MailKit. This tutorial covers setting up SMTP configuration, handling email templates, and sending messages programmatically.
Dependency Injection (DI) is a design pattern used to achieve Inversion of Control (IoC) between classes and their dependencies. In ASP.NET Core, DI is a fundamental part of the framework, making it easier to manage dependencies and improve the modularity, testability, and maintainability of your applications.
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article