How To
How to use the Dapper ORM in ASP.NET Core
By Tan Lee Published on Jan 04, 2025 344
Dapper is an open-source, lightweight "micro ORM" that simplifies data access in applications. It supports various databases like SQL Server, MySQL, SQLite, SQL CE, and Firebird, offering high performance while maintaining ease of use.
How to enable CORS in ASP.NET Core
By Tan Lee Published on Jan 04, 2025 372
The same-origin policy is a security measure in web browsers that restricts interactions between different URLs unless they share the same protocol, port, and host.
How to implement HTTP.sys web server in ASP.NET Core
By Tan Lee Published on Jan 04, 2025 412
ASP.Net Core is an open-source, cross-platform framework for building high-performance web applications.
How to use File Providers in ASP.NET Core
By Tan Lee Published on Jan 04, 2025 712
File Providers in ASP.NET Core offer an abstraction layer over the file system, enabling easy retrieval of file and directory information, monitoring for changes, and accessing physical files.
How to use policy-based authorization in ASP.NET Core
By Tan Lee Published on Jan 04, 2025 427
ASP.NET Core is a framework for building web applications across different platforms, policy-based authorization is a new feature that complements traditional role-based authorization.
How to enforce SSL in ASP.NET Core
By Tan Lee Published on Jan 04, 2025 391
SSL (Secure Sockets Layer) is a security protocol that encrypts communications between a web server and a browser.
How to use HttpClientFactory in ASP.NET Core
By Tan Lee Published on Jan 04, 2025 344
HttpClientFactory helps avoid issues like socket exhaustion by reusing `HttpClient` instances.
How to use configuration providers in ASP.NET Core
By Tan Lee Published on Jan 04, 2025 390
ASP.NET Core enables flexible and modular configuration management through configuration providers and dependency injection, promoting a loosely coupled architecture.
DbContext in Entity Framework Core
By Tan Lee Published on Dec 31, 2024 602
Entity Framework (EF) Core is an Object-Relational Mapper (ORM) that helps developers interact with databases using .NET objects, eliminating the need to deal directly with SQL queries for CRUD operations.
How to use Scrutor in ASP.NET Core
By Tan Lee Published on Jan 04, 2025 490
Scrutor is a library that enhances ASP.Net Core's dependency injection (DI) system by eliminating the need for repetitive boilerplate code when registering services.
How to use response caching middleware in ASP.NET Core
By Tan Lee Published on Jan 04, 2025 301
In ASP.NET Core, response caching can significantly improve application performance by reducing the load on the web server.
How to enable CORS in ASP.NET Core WebAPI
By Tan Lee Published on Dec 05, 2024 396
To enable Cross-Origin Resource Sharing (CORS) in an ASP.NET Core Web API project, follow these steps.