Necessary for medium and large-scale project development of. NET -- ORM database access technology

Related downloads: DeveloperSharp.dll component DeveloperSharp.dll component   Common ORM technologies (such as Entity Framework, Dapper, SqlSugar, NHibernate, etc.) are either making procedural variants of Sql statements or object-oriented Sql statements. The disadvantages are obvious: it is difficult to popularize and apply simple Sql stateme ...

Added by manishdugar on Thu, 20 Jan 2022 05:03:40 +0200

Understand ASP Net core - Cookie based authentication

Note: This article is part of the understanding ASP.NET Core series. Please check the top blog or Click here to view the full-text catalog summary Usually, Authentication and Authorization are discussed together. However, because the two languages are similar in English and the words "Authentication and Authorization" are often used ...

Added by academ1c on Tue, 18 Jan 2022 17:23:55 +0200

Dependent Injection in.NET: Life Cycle

The sample code for this article uses. NET 6, specific code can be in this repository Articles.DI Get in. In the previous article, services were used uniformly when registering services. AddSingleton <TService, TImplementation>() to register services, what is the specific meaning of this method? Are there any other similar approaches? An ...

Added by EOS on Mon, 17 Jan 2022 13:49:55 +0200

Dependent Injection in.NET: Registration Method

The sample code for this article uses. NET 6, specific code can be in this repository Articles.DI Get in. From the previous article, you learned about the three declaration cycles of a service. So what APIs are provided by the framework if we need to register services? How do we write code when we want to declare services and specific implemen ...

Added by hannnndy on Mon, 17 Jan 2022 12:32:42 +0200

Dependency Injection in.NET: Dependency and Constructor Discovery Rules

The sample code for this article uses. NET 6, specific code can be in this repository Articles.DI Get in. In the previous article, we mentioned the basic use of Dependent Injection. We used a simple case, registered the IMessageWriter interface, and wrote two implementation classes, MessageWriter and LoggingMessageWriter, but both had only one ...

Added by crazytoon on Mon, 17 Jan 2022 06:40:20 +0200

Code First new attribute

In this section, Entity Framework Code First migration is used to: Add a new field to the model. Migrate new fields to the database. When you use EF Code First to automatically create a database, Code First will: Add tables to the database to track the schema of the database. Verify that the database is synchronized with the model class that ...

Added by Mardoxx on Wed, 12 Jan 2022 02:54:25 +0200

Understanding of the three life cycles of. net core dependency injection

AddTransient mode: get a new instance for each request. Even if the same request gets multiple times, it will be different instances (note that getting multiple objects here refers to getting objects through context rather than sharing the previous object) AddScoped: get a new instance for each request. If the same request is obtained multiple ...

Added by lindm on Sat, 08 Jan 2022 08:01:36 +0200

ASP.NET Core authentication principle and Implementation

Generally, in an application, security is divided into two steps: authentication and authorization. Authentication is responsible for checking the identity of the current requester, while authorization determines whether the current requester can access the desired resources according to the identity obtained in the previous step. Since securi ...

Added by Scifa on Fri, 07 Jan 2022 04:25:46 +0200

. Net encryption and decryption component tool class system Security. Cryptography. Algorith

Yes Before the emergence of the. NET Framework, if we need encryption, we only have a variety of lower level technologies to choose from, such as Microsoft Crypto API, Crypto + +, Openssl, etc., and its usage is quite complex. And in NET Framework, these complex contents (the original independent API and SDK) have been encapsulated and merged i ...

Added by jdesilva on Thu, 06 Jan 2022 01:20:05 +0200

Fundamentals of. NET coding

Some basic concepts and analysis of. NET coding Simple type concept Hex (HEX) The byte range is 0 ~ 255, and the binary range is 00000000 ~ 11111111, which is equivalent to 1 byte. Byte [] byte array bit, only 2 states: 0, 1 1 byte equals 8 bits, i.e. 1 byte = 8 bits In c#. Byte is byte, which is a struct structure, b1 equals b2 byte b = 1; b ...

Added by zipdisk on Tue, 04 Jan 2022 07:54:57 +0200