Tag

C#

正在浏览与 C# 相关的文章。

355 篇文章
29 当前页
(29/30) Everyone learn Blazor together: Blazor unit testing

(29/30) Everyone learn Blazor together: Blazor unit testing

Probably the most boring process of developing a system is to solve bugs, especially the error of trying to value null objects (`Object reference not set to an instance of an object.`). This should be the most common problem that most people encounter when they first step into the programming field. In order to relieve themselves from the boring process of solving bugs, this article introduces 'unit testing'.

StrayaWorker 12/25/2021 8:39 PM
Support. NET6! Zack.EFCore.Batch is a framework for batch updating, deleting, and inserting data in EF Core

Support. NET6! Zack.EFCore.Batch is a framework for batch updating, deleting, and inserting data in EF Core

A new version of the framework 'Zack.EFCore.Batch' that performs 'updates','deletes', and 'inserts' of data in 'EF Core' has been released. The new version adds support for '. NET 6' and supports 'ValueConverter' when data is inserted in batches, completely solving the 'The count of columns should be even exception that occurs when the expressions of two columns are equivalent' when updating data.

杨中科 12/25/2021 7:23 PM
(28/30) Everyone learns Blazor together: Policy-based authorization

(28/30) Everyone learns Blazor together: Policy-based authorization

It was mentioned before that 'ASP.NET Core Identity' uses 'Claim' based authentication. In fact,'ASP.NET Core Identity' has different types of authorization methods, the simplest are 'login authorization','role authorization', and 'Claim authorization', but all of the above are implemented in one way: 'Policy-based authorization'.

StrayaWorker 12/25/2021 5:51 PM
C#script

C#script

In some cases, you need to dynamically execute C#code during program execution. For example, you need to save certain algorithms that change frequently in a configuration file, and read and perform operations from the configuration file during execution. At this point, you can use C#scripts to do this.

寻找无名的特质 12/24/2021 10:46 PM
(24/30) Everyone learn Blazor together: <AuthorizeRouteView>Use

(24/30) Everyone learn Blazor together: <AuthorizeRouteView>Use

The day before yesterday, I added verified and failed display content to 'Blog.razor'. However, if the system wants to present the same content that failed to verify, it would be a waste of time to write it in every Component. You can use 'App.razor' to help us do unified presentation.

StrayaWorker 12/23/2021 10:51 PM