摘要:
生成随机数,第一反应肯定是 Random 类,然而,Random 生成的随机数被称为伪随机数,因为用 Random 生成随机数时,需要用到一个“种子”,而 使用相同的种子,一定会产生相同序列的数字。 Random r1 = new Random(1); Console.WriteLine(r1.Ne 阅读全文
摘要:
首先在Startup.cs文件中配置Cookie认证和jwt认证 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; u 阅读全文
摘要:
using System.ComponentModel.DataAnnotations; using Microsoft.EntityFrameworkCore; var builder = WebApplication.CreateBuilder(args); var connectionStri 阅读全文