How To
Exploring Hybrid Caching in .NET 9.0
By Tan Lee Published on Feb 21, 2025 408
Caching plays a crucial role in enhancing application performance by reducing data retrieval time and minimizing database or API calls. In .NET 9.0, Microsoft introduces advanced caching techniques, including Hybrid Caching, which combines the benefits of in-memory and distributed caching.
Using Entity Framework with IDbContext in .NET 9.0
By Tan Lee Published on Feb 21, 2025 431
Entity Framework (EF) Core is a powerful ORM for managing databases in .NET applications. While EF Core provides ease in interacting with databases, directly using DbContext in services or repositories can create tight coupling and make unit testing more challenging.
IExceptionFilter in .NET Core
By Tan Lee Published on Feb 21, 2025 267
In ASP.NET Core, the IExceptionFilter interface is used to handle exceptions that occur during the processing of a request.
Repository Pattern in .NET Core
By Tan Lee Published on Feb 21, 2025 537
Effective code organization is crucial when developing modern software, especially as the application structure becomes more intricate. One of the most effective design patterns to manage this complexity is the Repository Pattern.
CRUD with Dapper in ASP.NET Core
By Tan Lee Published on Feb 21, 2025 510
In this guide, you will learn how to work with Dapper in an ASP.NET Core MVC application for basic CRUD operations using .NET 8 with SQL Server.
How to Implement Mediator Pattern in .NET
By Tan Lee Published on Feb 21, 2025 304
In complex applications, objects often need to communicate with one another. While this may be simple in smaller applications with only a few components, the complexity increases as more components are added.
How to use AutoMapper in ASP.NET Core
By Tan Lee Published on Feb 21, 2025 251
In this guide, we will walk through how to integrate and use AutoMapper in an ASP.NET Core application.
How to fix 'asp-controller and asp-action attributes not working in areas'
By Tan Lee Published on Feb 18, 2024 1.52K
In ASP.NET Core, if you're facing issues where the asp-controller and asp-action attributes aren't working, or if you encounter errors like 'form asp-action in areas can't find a controller,' you can follow these steps to resolve the issue.
How to convert voice to text in Javascript
By Tan Lee Published on Feb 19, 2025 277
To convert voice to text in JavaScript, you can use the Web Speech API's webkitSpeechRecognition interface, which is built into most modern browsers, primarily Chrome.
LET vs VAR in JavaScript Variable Declarations
By Tan Lee Published on Feb 19, 2025 225
In JavaScript, both let and var are used to declare variables, but they differ in terms of scope, hoisting, and redeclaration rules.
How to add voice commands to webpage in Javascript
By Tan Lee Published on Feb 19, 2025 376
To add voice commands to your webpage using JavaScript, you can use the Web Speech API, specifically the SpeechRecognition interface.
How to capture an image in javascript
By Tan Lee Published on Feb 19, 2025 307
dom-to-image is a JavaScript library that allows you to convert any DOM node into a vector (SVG) or raster (PNG) image.