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.
SQLite is a self-contained, serverless, and zero-configuration relational database management system (RDBMS). It is a lightweight, open-source, and embedded database engine that does not require a separate server process and operates directly on the client's device

Minimal API Middleware in .NET 8, a streamlined approach to handling HTTP requests and responses. Learn about built-in middleware and create custom middleware for request logging, modification, and response modification. The article provides practical examples and code snippets, offering a comprehensive guide to shaping the behavior of your Minimal API.

In the realm of software development, security remains a paramount concern. This is especially true for .NET applications, which often handle sensitive data and interact with critical systems. By adhering to security best practices, developers can create robust applications that safeguard user information and withstand potential attacks.

This article is about middleware in .net core and how to create custom middleware. Middleware is a key component in the execution pipeline of .NET Core applications, handling requests and responses. Learn how to create custom middleware and pass data between components for enhanced functionality.

IP rate limiting is a crucial aspect of web application security that helps prevent abuse, protect against brute force attacks, and ensure fair resource usage. In this article, we will walk through the process of implementing IP rate limiting in an ASP.NET Core MVC application using middleware.

.NET Core's flexibility and extensibility are enhanced by filters, allowing developers to inject logic into the request processing pipeline. Types like Authorization, Action, Result, and Exception filters enable modular and reusable cross-cutting concerns.

Experience the simplicity of ASP.NET Core with Minimal APIs in .NET 6. Explore advantages like conciseness, ease of use, and quick startup time, and delve into sample code and use cases.

When you create validators using FluentValidation in your .NET applications, it's important to check if they do their job correctly. Testing your validators helps you make sure they catch mistakes. In this guide, we'll explore how to test your FluentValidation validators simply.

Validation is a crucial aspect of software development, ensuring that data meets specified criteria before it is processed further. In the .NET ecosystem, one powerful and widely used library for handling validation is Fluent Validation. In this article, we'll explore Fluent Validation in the context of .NET 8 and walk through a simple example to demonstrate its easy of use.

Demystify CORS in ASP.NET Core! Learn how to seamlessly handle Cross-Origin Resource Sharing and overcome origin-related errors in your Web API with this concise guide.

Working with NodaTime with EF core which is a alternative DateTime framework for .net applications.

This step-by-step guide will walk you through the process of creating, publishing, and using a .NET Core NuGet package. NuGet packages are essential in .NET development, enabling you to share and distribute libraries and code efficiently.

In this series of articles, we'll focus on a hands-on, practical implementation of JWT authentication with refresh tokens in .NET Core 6.0 using ADO.NET and SQL, emphasizing real-world scenarios and code examples for a deeper understanding of the underlying concepts.

This post explores the challenges of generating realistic test data manually and introduces Bogus, a .NET library that simplifies the process by providing a fluent API for defining data generation rules. It covers basic and complex data generation, making unit testing more efficient and realistic.

.NET Core Console Applications On Mac OS X, Ubuntu 14.04 And Windows 10.

This article on Localization in .NET Core Web API. Learn why it matters, set up localization, create resource files, and implement practices for inclusive user experiences worldwide.

Azure Functions, a component of Microsoft's serverless computing offerings in Azure, enable developers to create and deploy small, event-driven code without managing infrastructure. These functions, supporting languages like C# and JavaScript, automatically scale and integrate with Azure services, streamlining the development of serverless applications and microservices.

Asp.Net Core – How to Read values from Appsettings.json

The Circuit Breaker pattern, analogous to its electrical counterpart, monitors for failures and helps prevent cascading failures in distributed systems. It acts as a barrier between a potentially failing service or resource and the rest of the system. When a service is working as expected, the Circuit Breaker allows requests to pass through. However, if the service encounters an issue or starts to fail, the Circuit Breaker "opens" and prevents further requests from being sent to the failing service for a defined period. This helps to preserve system resources and prevent overload or degradation.

This article delineates two fundamental data retrieval strategies in .NET Core: Eager Loading and Lazy Loading. Eager loading is a technique used to retrieve related or associated data in a single query from a database.

The Command Query Responsibility Segregation (CQRS) pattern is an architectural principle that separates the responsibility for handling commands (write operations that change state) from queries (read operations that retrieve state). It advocates having separate models for reading and writing data. Components of CQRS: Command: Represents an action that mutates the system's state. Query: Represents a request for data retrieval without changing the system's state. Command Handler: Responsible for executing commands and updating the system's state. Query Handler: Responsible for handling read requests and returning data in response to queries. Command Model: Contains the logic and rules necessary to process commands and update the data store. Query Model: Optimized for querying and presenting data to users, often involving denormalized or optimized data structures tailored for specific queries. Key Principles: Separation of Concerns: Splitting the responsibilities of reading and writing data helps in maintaining simpler, more focused models for each task. Performance Optimization: Enables independent scaling of read and write operations. The read model can be optimized for query performance without affecting the write model. Flexibility: Allows for different models to be used for reading and writing, which can cater to specific requirements and optimizations for each use case. Complex Domain Logic: Particularly beneficial in domains where read and write logic significantly differ, allowing tailored models for each type of operation. Benefits: Scalability: CQRS enables scaling read and write operations independently, optimizing performance. Flexibility and Optimization: Tailoring models for specific tasks allows for better optimization of the system. Complexity Management: Separating concerns can make the system easier to understand and maintain.

Employing Dapper in ASP.NET Core for database operations brings a streamlined approach to handling data, ensuring efficient and straightforward interactions. When complemented with stored procedures, this combination elevates the API development process, enhancing performance and maintainability. Leveraging these tools empowers developers to create robust, high-performing applications while simplifying database access and management.

Learn to implement external logging in API and Windows Service using Serilog. This guide covers Serilog configuration, worker class setup, and package references, ensuring efficient information tracking with detailed examples.

Secure web development involves maintaining user sessions beyond JSON Web Token (JWT) expiration. Learn to implement JWT refresh tokens in .NET 8.0, covering authentication, token generation, and refreshing for enhanced security.

The intricacies of passing data between middlewares in .NET Core Web API applications. Dive into methods like HttpContext.Items, custom middleware options, dependency injection, and HTTP context request headers with practical code examples for seamless data flow.

The distinctions between ASP.NET MVC and ASP.NET Core frameworks. ASP.NET MVC relies on the .NET Framework, tailored for Windows, while ASP.NET Core is cross-platform, modular, and boasts improved performance.

ASP.NET Core is a powerful framework for building web applications, and "Dapper" is a popular micro ORM (Object-Relational Mapping) that works well with ASP.NET Core for database operations. Dapper provides a simple way to interact with databases using raw SQL queries while mapping the results to objects.

Dive into the fundamentals of logging and follow a detailed guide on implementing Serilog in .NET Core 6 Web API. Learn the benefits and step-by-step configuration for efficient log management.

Unlock the power of data transformation in ASP.NET Core with a custom object mapper. Delve into the steps—defining mapping configurations, implementing logic, and seamless integration—ensuring tailored, efficient, and maintainable data conversion in your applications. Happy coding!

In this article, you will learn about DotNet Core Application Run Cross Platform using docker container.
Everything on .NET Core, not only its articles: the .NET Core page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article