Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.
In this article, we explore API versioning and how to enable authorization in Swagger UI for a .NET Core Web API. We’ll discuss best practices for managing API versions, ensuring backward compatibility, and securing your API endpoints.

Learn to unit test EF Core repositories using an in-memory database with C# and xUnit. This approach simulates database operations without overhead, ensuring fast and isolated tests. Set up involves installing necessary NuGet packages, configuring DbContext, writing tests, and initializing test data.

Model binding in .NET Core simplifies the process of mapping HTTP request data to action method parameters. It automatically extracts data from various sources like query strings, form submissions, route parameters, HTTP headers, and request bodies, making it easier to handle client-server interactions efficiently.

This article explains ASP.NET Core's `IActionFilter`, highlighting its use in handling cross-cutting concerns like logging, validation, and authentication while outlining its advantages and potential drawbacks in maintaining code efficiency.

The SOLID principles, introduced by Robert C. Martin, are key guidelines in software development for creating maintainable, scalable, and flexible systems. These five principles focus on designing cleaner, more understandable code by ensuring classes and methods have clear responsibilities and flexibility.

Learn how to implement API versioning in .NET 8 to manage changes and maintain compatibility. This article covers versioning strategies like URI Path, Query Parameter, Header, and Content Negotiation. Follow steps to configure API versioning, set up Swagger, and create a versioned UsersController.

IHttpClientFactory in .NET Core simplifies HTTP client creation, improves performance, and promotes the reuse of HttpClient instances. It offers built-in features like dependency injection, named and typed clients, and support for resilience with Polly, making it ideal for handling HTTP requests efficiently.

This guide covers its usage, configuration, and examples, explaining how to implement response caching in ASP.NET Core for faster load times and reduced server overhead in your web applications.

It will be beneficial to beginners who are struggling with Entity Framework Core and Creating Code-First Approach. The EF-Core Code-First approach involves creating domain classes first and then generating the database using 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.

Creating a new HttpClient instance frequently can lead to performance issues like socket exhaustion due to open sockets lingering in the TIME_WAIT state. Instead, reuse a singleton HttpClient instance to avoid these issues.

Learn how to generate and manage Excel reports in ASP.NET Core 8.0 using the EPPlus library. This guide covers the essentials of integrating EPPlus for creating and manipulating Excel workbooks, including data export and report automation.

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.

CQRS (Command Query Responsibility Segregation) is a pattern that separates the responsibilities of reading and writing data into distinct models. This separation can help optimize both aspects independently and improve the scalability and maintainability of applications.

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.

Learn how to implement caching using this pattern to enhance memory management, ensure thread safety, and optimize performance in your applications.

This article explores how AI-driven predictive analytics is revolutionizing business strategy and decision-making. It examines the advanced techniques used in AI to forecast future trends, optimize operations, and provide actionable insights.

This content explains sharing data between Angular components via a service. It covers steps such as service creation, data sharing via click, and retrieval using data services.

Learn about essential testing frameworks like xUnit and NUnit, explore mocking and dependency injection techniques, and gain insights into best practices for writing robust test cases. Improve code quality and ensure reliable software with practical testing strategies.

Learn how to manage exceptions during the email verification process, enhance user experience, and ensure secure account activation. The guide covers best practices for robust email confirmation workflows.

This guide walks you through setting up a .NET Core API, integrating Gridify for dynamic query handling, and enhancing your application's performance with clean, maintainable code.

This article explores Object-Oriented Programming (OOP) within the .NET framework, focusing on core concepts such as classes, objects, inheritance, polymorphism, encapsulation, and abstraction.

Learn how to implement real-time pageview tracking in your .NET Core application. This guide covers setting up live monitoring of website traffic, capturing pageview metrics, and integrating real-time analytics into your web app.

Learn how to configure and optimize the .NET 8.0 pipeline for improved performance in ASP.NET Core applications. Dive into new features and enhancements in the latest .NET release.

Learn the essentials of integration testing in ASP.NET Core. This guide covers setting up your testing environment, creating and running integration tests, and using frameworks and tools to ensure your application’s components work together seamlessly.

Explore advanced techniques for implementing microservices communication using gRPC in .NET Core. This article dives into high-performance, real-time communication patterns with practical code examples in C#.

Build scalable, resilient microservices with .NET Core and MediatR by implementing event-driven architecture. This approach decouples services, enhances scalability, and simplifies maintenance. Learn to handle events, configure dependency injection, and expand your architecture.

Dive into the advanced implementation of the Command Query Responsibility Segregation (CQRS) pattern using .NET Core and MediatR. This article explains the benefits of CQRS in modern application development and includes practical code examples in C#.

This guide covers creating a clean, maintainable data access layer by leveraging the Repository Pattern for managing database interactions and exposing endpoints through Web API, enhancing your .NET 8 applications.
Everything on .NET Core, not only its articles: the .NET Core page →
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