NashTech Insights

Phong Nguyen

Phong is currently working as Technical Architect at NashTech, has over 12+ years of experience in designing, building and integrating Enterprise Applications. He is interested in Performance Optimization, Security, Code Analysis, Architecture and Cloud Computing.

Posts by categories

Posts by tags

Entity Framework Core Internals: Query Pipelines

Introduction This post is the continuation of the Entity Framework Core Internals series, if you haven’t followed along please check out the previous posts below: In today’s article, we’ll dive deep to see how EF Core processes LINQ queries, translates, and executes them on your target database. We’ll also explore some concepts about IQueryable and …

Entity Framework Core Internals: Query Pipelines Read More »

woman using laptop computer

Entity Framework Core Internals: Model Building

Introduction This post is the continuation of the Entity Framework Core Internals series, if you haven’t followed along please check out the previous posts below: EF Core uses a metadata model to describe how the application’s entity types are mapped to the underlying database. EF models are built using a combination of three mechanisms: conventions, …

Entity Framework Core Internals: Model Building Read More »

woman wearing red and black checkered blouse using macbook

Entity Framework Core Internals: Dependency Injection and Internal Service Provider

Introduction This post is the continuation of the Entity Framework Core Internals series, if you haven’t followed along please check the previous posts below: When you work with Entity Framework (EF) Core in your main application, you can decide to work with Dependency Injection (DI) or not DI. Internally, EF Core has its own built-in …

Entity Framework Core Internals: Dependency Injection and Internal Service Provider Read More »

Entity Framework Core Internals: DbContext Instantiation and Initialization

Introduction Continue the 1st post: Entity Framework Core Internals: High-Level Overview, in today’s post, we will take a deeper look inside the DbContext class to find out how instantiation and initialization steps work. DbContext Instantiation Normally, when working with your DbContext, you often start your query with a query root, you can use the generic …

Entity Framework Core Internals: DbContext Instantiation and Initialization Read More »

abstract, 4k wallpaper 1920x1080, full hd wallpaper-164329.jpg

Entity Framework Core Tips: Speeding Up Your First Query Using Compiled Models

Introduction According to Entity Framework (EF) Core documentation: I also have a post to explain What happened when the 1st, 2nd, 3rd, … queries were executed?, so typically, there are a lot of steps involved and EF Core utilizes caching a lot to reduce the time-consuming when serving your queries. However, for the first time …

Entity Framework Core Tips: Speeding Up Your First Query Using Compiled Models Read More »

Entity Framework Core Internals: High-Level Overview

Introduction Have you ever wondered what and how Entity Framework Core (EF Core) does behind the scenes after you instantiate a DbContext and use it to execute a LINQ query? You might have known or heard that people usually say that it will translate your query into something that your target database can understand to …

Entity Framework Core Internals: High-Level Overview Read More »

time lapse photo of stars on night

Entity Framework Core Tips: Making Queries Run As Fast As Dapper

Introduction Entity Framework Core (EF Core) is a well-known ORM tool and very convenient for things like inserting, updating, and deleting database operations, However, for things like retrieving data, it often has been compared with Dapper in terms of speed and performance as it needs to translate your LINQ queries into SQL queries rather than …

Entity Framework Core Tips: Making Queries Run As Fast As Dapper Read More »

Profanity Check Source Code with Gitleaks – Part 2: Azure Pipelines Integration

Introduction In the previous post: Profanity Check Source Code with Gitleaks, Why Not?, we took a look at how we can utilize Gitleaks for things like content filtering but the setup only works in the local environment and is easy to bypass, In this article, we’ll take a quick tour of how we can enforce …

Profanity Check Source Code with Gitleaks – Part 2: Azure Pipelines Integration Read More »

List All 3rd Party Packages Being Used In Your Project – Part 4: Create Your Own .Net Project Templates

Introduction Up until now, we’ve seen how to create an application, publish it as a CLI tool, and execute it with Azure Pipeline to list all Nuget packages being used, as promised in the previous article, we will continue to finish the tool to list all NPM packages, let’s dive right in. Creating .Net Project …

List All 3rd Party Packages Being Used In Your Project – Part 4: Create Your Own .Net Project Templates Read More »

Profanity Check Source Code with Gitleaks, Why Not?

Introduction Gitleaks is a well-known tool for detecting and preventing hardcoded secrets like passwords, api keys, and tokens in git repos. The way it works is based on regular expression to match the file content of the git commits with predefined patterns, so apart from working with secrets, do you know that we can utilize …

Profanity Check Source Code with Gitleaks, Why Not? Read More »

List All 3rd Party Packages Being Used In Your Project – Part 3: Azure Pipelines Integration

Introduction In my previous post List All 3rd Party Packages Being Used In Your Project – Part 2: Create Your Own .Net CLI Tool, I promised that I’ll show you how we can publish the tool to the official NuGet website, then we can integrate and run it as a Task in an Azure DevOps …

List All 3rd Party Packages Being Used In Your Project – Part 3: Azure Pipelines Integration Read More »

List All 3rd Party Packages Being Used In Your Project – Part 2: Create Your Own .Net CLI Tool

Introduction In my previous post How To List All 3rd Packages Being Used In Your Project, I demonstrated how to list Nuget packages and Npm packages for C# and ReactJs projects by creating and executing Console application, but rather than executing manually, Isn’t it cooler if we can pack and install the application as a …

List All 3rd Party Packages Being Used In Your Project – Part 2: Create Your Own .Net CLI Tool Read More »