Configuration on.NET Core Configuration

Preface NET Core has made many changes to the operation of the configuration file relative to the.NET Framework. Let's talk today. Packagage for Configuration starts with Microsoft.Extensions.Configuration and supports a variety of configurations, including memory, Json files, XML files, etc. Today we will mainly use Json format file configura ...

Posted on Wed, 01 Dec 2021 14:45:51 -0500 by eb1024

Go through axios completely and never be afraid to write requests again

axios request method It mainly includes get, post, put, patch and delete get get data post Submit data (form submission + file upload) put Update data (push all data to the server) patch Update data (only the modified data is pushed to the back end) dlelete Delete data get method Wri ...

Posted on Wed, 01 Dec 2021 07:25:42 -0500 by gamerzfuse

A memory leak analysis of an intelligent garment intelligent manufacturing system based on. NET

1: Background 1. Tell a story Last month, a friend came to me and said that there was a memory leak in his program. I don't know how to further analyze it. The screenshot is as follows: My friend, this paragraph has been very concise and comprehensive. Let's talk to windbg. 2: Windbg analysis 1. What is the leakage According to my friend's d ...

Posted on Wed, 01 Dec 2021 01:32:08 -0500 by little_webspinner

Yarp makes scheduling in the system more flexible

brief introduction Yarp is a reverse proxy component developed by the Microsoft team. In addition to the conventional http and https conversion communication, its biggest feature is that it can be customized, and it is easy to develop customized proxy channels according to specific scenarios. Details: https://devblogs.microsoft.com/dotnet/ann ...

Posted on Mon, 29 Nov 2021 17:06:25 -0500 by hammadtariq

Dapper Packaging, Secondary Packaging, Official Extension Package Packaging, and ADO.NET Native Packaging

A few days ago I came across dapper. Since I had not used it before, I just used ef core, looked at it a little, and wrote some simple reusable encapsulations. Dapper's usage is close to ADO.NET, so its performance is faster. So let's first look at how we can implement code reuse encapsulation when using ADO.NET. 1. ADO.NET Encapsulation Ca ...

Posted on Sun, 28 Nov 2021 17:01:22 -0500 by VDarkAzN

Principle and application of ASP.NET Expression tree

preface Expression tree is a binary tree data structure. The purpose is to realize convenient superposition of various query conditions and unlimited splicing into one query condition. Improve the coding efficiency of complex query logic. 1, Lambda expression Lambda expressions are divided into operational lambda and declarative lambda The foll ...

Posted on Sun, 28 Nov 2021 10:53:48 -0500 by Daniel Mott

Talking about the ConfigurationManager of. Net 6

introduce This section brings you the newly added ConfigurationManager of. NET 6. Many people are curious about why to talk about this. You can read and load the configuration information easily. Let's look down. This adds the new webapplication of ASP.NET Core and the types already used by WebApplicationBuilder, allowing reading from the conf ...

Posted on Tue, 23 Nov 2021 00:25:55 -0500 by warptwist

Correct authentication authorization method in. NET Core (. NET5)

1, Introduction Sites separated from the front end and the back end generally use jwt or identity server 4 to generate token s for login authentication. What we want to say here is the correct way of site login authorization when the front and back ends of small projects are not separated. 2, Traditional authorization method Let's talk about th ...

Posted on Mon, 22 Nov 2021 23:48:49 -0500 by sbcwebs

Introduction to DotNet Library - Viyi.Strings

Viyi.Strings Is a. NET library that supports. Net Standard 2.0 and. Net 5. As can be seen from the name, the main purpose of this library is to solve some operations on strings and text. In general, the current version of Viyi.Strings provides the following functions:Text based encoding / decoding supports Base64 and Hex (hexadecimal) encoding ...

Posted on Mon, 22 Nov 2021 09:53:15 -0500 by junk@alf2.com

What's new in. NET6 -- struct optimization

Some optimizations have been made for Struct in. NET6. Let's take a look at the optimizations for Struct in. NET6 through some cases. 1, Record Struct Although there was a record in the previous version, the record in the previous version is a class and a reference type, but the record struct is a value type and a structure. Its usage is as f ...

Posted on Sat, 20 Nov 2021 10:03:29 -0500 by royalsolo