Posts Categorized: .NET

Best practice: Làm việc với DateTime

Tìm những records nào liên quan tới ngày đã chọn (Local to UTC) Bài toán: Tôi muốn lấy dữ liệu hoạt động của 1 user cụ thể trong ngày 12/08/2025 (GMT +8). Giả sử table Logs có các cột như sau “UserId, Data, CreatedOn (UTC)” Cách thực hiện: Chuyển từ giờ local sang UTC. Cài […]

Transaction Management in Systems using .NET Core and MS SQL

Introduction In financial or e-commerce systems, managing financial transactions is a crucial part. Each transaction can consist of multiple components such as purchasing items, platform fees, or payment gateway fees. To ensure data integrity and transparency, the system needs a mechanism to record transactions and financial journals clearly and accurately. This article will guide you […]