How To

How to use Refit to consume APIs in ASP.NET Core
By Tan Lee Published on Dec 31, 2024 362

Refit is a powerful library designed to streamline API consumption in .NET, .NET Core, and Xamarin.

abstract class vs interface in C#
By Tan Lee Published on Dec 31, 2024 208

When designing flexible and maintainable applications, it's important to understand the differences between abstract classes and interfaces.

How to implement identity authentication using Minimal APIs in ASP.NET Core
By Tan Lee Published on Dec 31, 2024 405

Minimal APIs offer a lightweight approach to building APIs with minimal dependencies, but authentication and authorization are still often necessary.

How to use Dapper with SQLite in ASP.NET Core
By Tan Lee Published on Dec 31, 2024 453

When building .NET and .NET Core applications that rely on databases, developers often seek a lightweight and fast database engine to speed up testing and development.

How to Use the New Minimal API Features in ASP.NET Core
By Tan Lee Published on Dec 31, 2024 236

In ASP.NET Core 8, several new features have been introduced to enhance the development of minimal APIs.

How to Build an authentication handler for a minimal API in ASP.NET Core
By Tan Lee Published on Dec 31, 2024 419

ASP.NET Core’s minimal API framework provides a lightweight approach to building APIs with minimal overhead, but security is still a priority.

How to host Web API in a separate process
By Tan Lee Published on Dec 30, 2024 255

Web APIs are essential for building RESTful services that communicate over HTTP, providing a lightweight, stateless, and scalable architecture.

Asynchronous operations in ADO.Net
By Tan Lee Published on Dec 30, 2024 176

In this article, we explore asynchronous programming basics and demonstrate how to implement it in ADO.NET and Entity Framework for database operations.

Optimizing LINQ Query Performance
By Tan Lee Published on Dec 30, 2024 173

The post provides tips and best practices for optimizing LINQ (Language Integrated Query) performance.

Exception handling in WCF
By Tan Lee Published on Dec 30, 2024 141

In WCF (Windows Communication Foundation), handling exceptions becomes more complex due to its reliance on sending .NET objects over the wire and serialized data (e.g., SOAP messages).

Improving Web API performance
By Tan Lee Published on Dec 30, 2024 178

To improve the performance of your Web API services, you can apply several optimization techniques.

How to implement database connection resiliency in ASP.NET Core
By Tan Lee Published on Dec 30, 2024 397

In this article, we will learn how to leverage connection resiliency in EF Core to automatically detect errors and retry failed database commands.