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 the versatile world of model binding in ASP.NET Core REST APIs. Model binding is a critical feature that simplifies data handling by automatically mapping HTTP request data to .NET objects. We'll delve into real-world use cases, including binding query parameters, route data, request bodies, and headers. Discover how model binding streamlines API development, improves code readability, and ensures data consistency. Whether you're a beginner or an experienced ASP.NET Core developer, understanding model binding is crucial for building efficient and maintainable RESTful APIs.

In this article, we are going to learn about Data annotations and their importance in .Net Core. Data annotation is crucial in modern software development for ensuring data integrity and clarity. .NET provides a standardized way to convey metadata about data objects, enhancing code robustness and maintainability. Explore 25 essential data annotations in .NET with explanations and examples.

distinguishing between REST APIs and Web Services is crucial. While these terms are often used interchangeably, they represent distinct approaches to facilitating communication between applications. In this article, we embark on a journey to explore and elucidate the disparities between REST APIs and Web Services, equipping readers with a comprehensive understanding of their unique characteristics, strengths, and ideal use cases.

This article explains how to create custom validation attributes in .NET, even though .NET provides built-in validation attributes. Custom validation attributes are useful when built-in attributes are insufficient for real-time application requirements. The advantages include code centralization and improved code readability and maintainability.

In this article, we explore global exception handling in .NET Core Web APIs using Middleware. Middleware is a critical component in the request-response pipeline, offering flexibility in handling requests and responses. We'll guide you through the creation and implementation of a custom middleware for global exception handling.

In this article, we'll delve into ASP.NET Core, a powerful framework for building web applications and APIs. We'll explore how to design APIs that are both scalable and maintainable using the Command Query Responsibility Segregation (CQRS) pattern and MediatR library.

Discover how to selectively expose APIs in Swagger for ASP.NET Core applications. Learn to control API visibility for improved documentation and security using the [ApiExplorerSettings] attribute.

Dependency injection And Service Lifetime in ASP.NET Core With Realtime example

Explore the world of microservices in software development with ASP.NET Core. Learn how to decompose applications into independently deployable services, configure API endpoints, and implement multi-tenancy for serving diverse customer needs. This blog provides practical steps and code examples to help you build scalable and tenant-aware systems, enhancing your software architecture's flexibility and efficiency.

Feature flags enable you to control the release of features in your .NET Core application, allowing you to manage and test changes with ease. In this blog post, we'll explore the world of feature flags in .NET Core, why they matter, and how to implement them effectively.

Learn how to implement RabbitMQ in an ASP.NET Core application, covering prerequisites, establishing connections, sending and receiving messages, and building reliable, scalable message-driven applications.

Creating an Azure Function for data migration from one database to another using an ASP.NET Core Web API involves several steps. In this example, I'll provide a high-level overview and code snippets for each step. Please note that this is a simplified example, and you should adapt it to your specific needs.

Sorting and searching are essential functionalities in many ASP.NET Core Web API applications. To implement advanced sorting and searching in your API, you can follow these steps:

Learn the fundamentals of unit testing in .NET Core, including manual vs. automated testing and popular testing frameworks like xUnit.net.

Discover the importance of unit testing in software development and its benefits over manual testing, and explore popular testing frameworks in .NET Core, with a focus on xUnit.net for automated testing.

Unit Testing in .NET Core series, we delve into parameterized unit testing using the xUnit.Net testing library. Parameterized unit testing involves defining a single test method and supplying it with various sets of input parameters. This approach minimizes code duplication and allows for testing a wide range of scenarios efficiently.

In ASP.NET Core's dependency injection system, you can choose from three service registration options: AddTransient, AddScoped, and AddSingleton. These options dictate how services are managed in terms of their lifecycle and behavior.

This article outlines the process of implementing Dependency Injection (DI) in a .NET Core Web API application. DI is crucial for managing dependencies, enhancing modularity, and enabling testability. It begins by explaining the importance of DI in a Web API and then provides a step-by-step guide on how to achieve it.

Configure OpenTelemetry and Azure Application Insights in .NET Core microservices to trace requests, identify bottlenecks, and monitor distributed application performance.

Learn how to create a Discord bot with .NET 6. Discover the steps to set up a bot, connect it to a server, and make it respond to commands like a pro.

Azure Functions Proxies are a powerful feature that allows you to define proxies to control the behavior of HTTP requests and responses to and from your Azure Functions. You can use them for URL rewriting, request/response transformation, and API composition. Here are the steps to use Azure Functions Proxies in an ASP.NET Core application:

Creating GraphQL endpoints in an ASP.NET Core web API using Hot Chocolate involves several steps. In this example, we'll create a simple GraphQL API that manages a list of books. We'll use Hot Chocolate to define the schema, query, and mutation operations. Before starting, make sure you have ASP.NET Core installed and a basic understanding of C# and web API development. You can create a new ASP.NET Core project using Visual Studio or the .NET CLI.

Creating a file zip functionality in an ASP.NET Core Web API involves several steps. In this article, we will go through each step, including setting up the project, creating the API endpoint, and generating a zip file containing multiple files.

Learn how to containerize a .NET Core 7 Web API using Docker. This step-by-step guide covers prerequisites, creating a Web API, configuring routing, testing locally, and containerization with Docker. Ensure consistency and reliability across different environments with Docker containerization.

Here we will learn how to use RabbitMQ for sending message in dotnet core

Generating PDF files in an ASP.NET Core Web API is a common requirement, and there are several libraries available to help with this task. In this example, I'll show you how to generate PDF files using the popular library called DinkToPdf, which is a .NET wrapper for the C library DinkToPdf. We'll also follow best practices for structuring your ASP.NET Core Web API project.

Securing APIs in an ASP.NET Core Web API involves implementing authentication and authorization mechanisms to protect your resources and ensure that only authorized users can access them. In this example, I'll provide a step-by-step guide on how to secure an ASP.NET Core Web API using JWT (JSON Web Tokens) authentication and role-based authorization.

Containerization of the .NET Core 7 Web API using Docker

Code smells are common issues in software development that indicate potential problems in the code. In ASP.NET Core or any other programming language, addressing code smells is essential for maintaining a clean and maintainable codebase. Let's go through an example and address some common code smells step by step.

Securing secrets in a .NET/ASP.NET Core application using Azure Key Vault is crucial for protecting sensitive information like API keys, connection strings, and other configurations. In this example, we'll walk through creating an ASP.NET Core application that leverages Azure Key Vault to store and retrieve secrets. We'll also implement a custom middleware for secure secret retrieval in real-time.
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