06 2021 档案

摘要:.Net5的WebApi中的Post请求,FromBody和FromForm .Net5的WebApi中的Post请求,FromBody和FromFormFromBody特性的使用(推荐使用):只能接收单个对象(实体对象或动态类型(dynamic))作参数,无法绑定简单类型(int、string、d 阅读全文
posted @ 2021-06-19 06:09 .net&new 阅读(437) 评论(0) 推荐(0) 编辑
摘要:https://dotnet.microsoft.com/download/dotnet-core https://dotnet.microsoft.com/download/dotnet/current/runtime .netCore 部署IIS 需要安装三个程序1.dotnet-hosting 阅读全文
posted @ 2021-06-16 18:08 .net&new 阅读(41) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Threading; namespace Fleck.Samples.ConsoleApp { class Server { static 阅读全文
posted @ 2021-06-13 12:29 .net&new 阅读(57) 评论(0) 推荐(0) 编辑
摘要:0. 系统要求 中央处理器 I5-10400F以上 内存 16 GB,最佳32G内存 硬盘 至少40 GB的可用空间 1:安装Docker Desktop 2:进入BIOS设置CPU的虚拟化 https://jingyan.baidu.com/article/ab0b56305f2882c15afa 阅读全文
posted @ 2021-06-13 11:18 .net&new 阅读(1118) 评论(0) 推荐(0) 编辑
摘要:1:安装PuTTY.exe软件 2:登录PuTTY.exe 3: 使用命令cd / dev,cd dev切换到目录dev 4:创建目录xiaowumysqlbackup,使用命令mkdir xiaowumysqlbackup,使用命令cd xiaowumysqlbackup 5:进入vim 创建备份 阅读全文
posted @ 2021-06-13 11:16 .net&new 阅读(74) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/basterdaidai/p/6679849.html ASP.NET MVC里ModelState.IsValid总是true或者总是falsemodel的属性如果不加验证相关的特性,ModelState.IsValid会永远为true;如果加了验证 阅读全文
posted @ 2021-06-13 09:11 .net&new 阅读(51) 评论(0) 推荐(0) 编辑
摘要:.net core 使用ClaimsIdentity实现登录授权一、新建用户 1、先新建一个用户表,用户存储用户信息。 复制代码 public class UserInfo { public const string Salt = "cesi"; [Key] [DatabaseGenerated(D 阅读全文
posted @ 2021-06-12 16:00 .net&new 阅读(515) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示