The Will Will Web

How to make System.Text.Json support serialization/deserialization of Dynamic type

I recently added the code generator function of System.Text.Json (C#) to support the Quicktype open source project, so I have a better understanding of how the Converter of System.Text.Json is written. Before this, I actually prefer to use Newtonsoft.Json (commonly known as Json.NET ) for JSON serialization/deserialization, because Json.NET has many “convenient” and “rich” functions […]

How to make System.Text.Json support serialization/deserialization of Dynamic type Read More »

How to avoid using passwords to access Git repositories on GitHub or Azure DevOps Services

Now that information security awareness is on the rise, many things have begun to be planned on the basis of “zero trust”. Today’s article focuses on how to access Git repositories through Personal Access Token ( PAT ) in a CI/CD environment. … continue reading … This article is reprinted from https://blog.miniasp.com/post/2022/06/08/Using-Git-with-Passwordless-in-GitHub-and-Azure-DevOps-Services This site is

How to avoid using passwords to access Git repositories on GitHub or Azure DevOps Services Read More »

A summary of all possible ASPNETCORE_* environment variables for ASP.NET Core 6.0

When we are writing .NET, there are many “configuration settings” that can be easily adjusted or changed through “environment variables”, which also include many built-in environment variable names starting with ASPNETCORE_ built in ASP.NET Core , which can help tweak many of the default behaviors of .NET and ASP.NET Core. Today, in this article, I

A summary of all possible ASPNETCORE_* environment variables for ASP.NET Core 6.0 Read More »

What kind of expectations should be given to the Auto Scaling function provided by the PaaS environment of the cloud platform

This week, the Microsoft Build Cloud Skills Challenge officially kicked off. When I participated in the Azure Developer Challenge , the final knowledge check of the Scale apps in Azure App Service module mentioned a somewhat controversial issue. It mentioned which situation is suitable for Using PaaS’s auto-scaling function (Auto-scaling), the answer is worth thinking

What kind of expectations should be given to the Auto Scaling function provided by the PaaS environment of the cloud platform Read More »

Using Angular’s HttpClient can make use of HttpParams to simplify query string operations

When we use HttpClient in Angular, we will inevitably need to add Query String (query string) to the call. Instead of writing it in the way of “group string”, it is better to use the API provided by HttpParams to completely simplify the query string operation, and at the same time It can also improve

Using Angular’s HttpClient can make use of HttpParams to simplify query string operations Read More »

How to make a high-quality technical sharing presentation (made with PowerPoint)

Our company often holds technology sharing meetings internally, so that colleagues have a space for technical exchanges, and sorting out the knowledge learned in daily work can help others learn a technology faster, or master a technology that is not easy and easy. concept of mastery. I have read almost all the presentations produced by

How to make a high-quality technical sharing presentation (made with PowerPoint) Read More »

Use GnuPG to ensure confidentiality and integrity in the process of transferring important files or files

When we are going to transfer confidential files, we may face many different transmission methods, but the process must ensure information security, so you will need to consider many factors. In this article, I intend to share how to use the GPG tool to sign and encrypt files. No matter the file is sent to

Use GnuPG to ensure confidentiality and integrity in the process of transferring important files or files Read More »

EF Core no longer performs additional validation on entity models during SaveChanges()

When I used EF6 before, I always felt a problem, that is, when we implemented Model Binding in ASP.NET MVC, in addition to MVC will help you do input validation and model validation , when you execute db.SaveChanges(); the default Entity Framework will read the DataAnnotations definition defined above the Entity Class again, such as

EF Core no longer performs additional validation on entity models during SaveChanges() Read More »

Recognize the three ways Entity Framework Core loads relational data

Entity Framework Core allows you to quickly obtain “related” data through “navigation properties”, but some performance may be sacrificed behind the convenience. In the early days of Entity Framework, the “delayed loading” mechanism was enabled by default. This default Values ​​can cause many unexpected performance problems, so that the notoriety of ” Entity Framework is

Recognize the three ways Entity Framework Core loads relational data Read More »