上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 30 下一页
摘要: 1:安装依赖包 2:在Progres.cs中注入 IConfiguration _config = new ConfigurationBuilder() .AddJsonFile("appsettings.json") .Build(); builder.Services.AddScoped(opt 阅读全文
posted @ 2022-09-15 19:54 .net&new 阅读(1222) 评论(0) 推荐(0) 编辑
摘要: Swagger是我们的好朋友,让后端不用再写文档(当然文档该写的还得写) 但是更方便我们对自己接口的测试,推荐使用Swagger 进行接口文档管理 这里简单介绍比较常用的的点,一定要提官方文档https://docs.microsoft.com/zh-cn/aspnet/core/tutorials 阅读全文
posted @ 2022-09-14 20:47 .net&new 阅读(56) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// xml帮助类 /// </summary> public class XmlHelper { /// <summary> /// 格式化xml字符串 /// </summary> /// <param name="xml"></param> /// <return 阅读全文
posted @ 2022-08-25 14:03 .net&new 阅读(149) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 验证ip地址 /// </summary> /// <param name="ipAddress"></param> /// <returns></returns> public static bool ValidateIPAddress(string ipAdd 阅读全文
posted @ 2022-07-27 09:05 .net&new 阅读(44) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { short HeadCount = 2; string sendMsg = "hello world"; byte[] HeadByte= SocketTools.PackHeadBytes(HeadCount); byte[] C 阅读全文
posted @ 2022-06-12 20:45 .net&new 阅读(545) 评论(0) 推荐(0) 编辑
摘要: using System; namespace ConsoleApp6{ class Program { /* 背景:由于委托能引用方法,且能链接和删除其他委托对象 步骤: ①定义委托类型,并在发布者类中定义一个类型的共有成员 ②在订阅者类中定义委托处理方法 ③订阅者对象将其事件处理方法链接到发布者 阅读全文
posted @ 2022-06-11 10:56 .net&new 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 我们用一个简单的例子,来说明一下这种消息传递的机制。 有一家三口,妈妈负责做饭,爸爸和孩子负责吃。。。将这三个人,想象成三个类。 妈妈有一个方法,叫做“做饭”。有一个事件,叫做“开饭”。做完饭后,调用开发事件,发布开饭消息。 爸爸和孩子分别有一个方法,叫做“吃饭”。 将爸爸和孩子的“吃饭”方法,注册 阅读全文
posted @ 2022-06-10 21:32 .net&new 阅读(558) 评论(0) 推荐(0) 编辑
摘要: Free 命令是 Linux 管理员广泛使用的最强大的命令。但与"/proc/meminfo"文件相比,它提供的信息很少。Free 命令显示系统上可用和已用物理内存和交换内存的总量,以及内核使用的缓冲区和缓存。 [root@sharplee creatfile]# free -m 下面是图中参数字段 阅读全文
posted @ 2022-05-27 17:56 .net&new 阅读(404) 评论(0) 推荐(0) 编辑
摘要: @model StudentSys.Models.SysRole@{ ViewBag.Title = "更新角色"; Layout = null;}<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>更新角色</title> <meta 阅读全文
posted @ 2022-05-22 10:45 .net&new 阅读(126) 评论(0) 推荐(0) 编辑
摘要: @{ ViewBag.Title = "添加角色"; Layout = null;}<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>添加角色</title> <meta name="viewport" content="width= 阅读全文
posted @ 2022-05-22 10:43 .net&new 阅读(64) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 30 下一页