06 2023 档案

摘要:参考: https://mp.weixin.qq.com/s?__biz=MzA3NDM1MzIyMQ==&mid=2247486318&idx=1&sn=1f06f6de690ba6df16ed812de9588709 https://www.cnblogs.com/Ceri/p/17492359 阅读全文
posted @ 2023-06-30 11:32 microsoft-zhcn 阅读(20) 评论(0) 推荐(0) 编辑
摘要:参考: http://layui.xhcen.com/doc/doc.html 表格 http://layui.apixx.net/demo/table.html 阅读全文
posted @ 2023-06-29 14:39 microsoft-zhcn 阅读(12) 评论(0) 推荐(0) 编辑
摘要:1.使用局部临时表来调整自增长列 select * from #newtemp from grade --相当于备份 truncate table grade--删除数据 insert into grade select classname from #newtemp 2.使用全局临时表来调整自增长 阅读全文
posted @ 2023-06-29 11:13 microsoft-zhcn 阅读(167) 评论(0) 推荐(0) 编辑
摘要:1.查询单列重复 select * from table where name in (select name from table group by name having count(name) > 1) 2.查询多列重复 SELECT a.* FROM table a,( SELECT nam 阅读全文
posted @ 2023-06-29 10:33 microsoft-zhcn 阅读(323) 评论(0) 推荐(0) 编辑
摘要:1、复制表结构,当新表名称未经在,数据库会创建一个新表 select * into 新表名称 from 旧表名称 where 1=2; 2、复制表数据,当新表名称已经在 insert into 新表 select * from 旧表 ; INSERT INTO新表(字段1,字段2,.......)S 阅读全文
posted @ 2023-06-27 10:35 microsoft-zhcn 阅读(383) 评论(0) 推荐(0) 编辑
摘要:1.根据数据库生成实体类 Models Scaffold-DbContext "Data Source=.;Initial Catalog=TEST;User ID=sa;Password=pwd;TrustServerCertificate=True" Microsoft.EntityFramew 阅读全文
posted @ 2023-06-25 22:57 microsoft-zhcn 阅读(271) 评论(0) 推荐(0) 编辑
摘要:参考:https://www.cnblogs.com/RainFate/p/15720684.html 在.NET Core 3.0中加入了对JSON的内置支持 using System.Text.Json; using System.Text.Json.Serialization; 1.读取与写入 阅读全文
posted @ 2023-06-10 03:06 microsoft-zhcn 阅读(589) 评论(0) 推荐(0) 编辑
摘要:创建存储过程 CREATE PROC [dbo].[sp_Data2InsertSQL] @TableName AS VARCHAR(100) AS DECLARE xCursor CURSOR FOR SELECT name,xusertype FROM syscolumns WHERE (id 阅读全文
posted @ 2023-06-08 18:34 microsoft-zhcn 阅读(577) 评论(0) 推荐(0) 编辑
摘要:参考文献:https://www.cnblogs.com/team-xiong/p/12066200.html 阅读全文
posted @ 2023-06-07 18:01 microsoft-zhcn 阅读(11) 评论(0) 推荐(0) 编辑
摘要:参考文献:https://blog.csdn.net/sD7O95O/article/details/130002295 阅读全文
posted @ 2023-06-07 17:13 microsoft-zhcn 阅读(57) 评论(0) 推荐(0) 编辑
摘要:1.安装 NuGet 包:Microsoft.AspNetCore.Authentication.JwtBearer2.配置:appsettings.json3.配置:Program.cs4.获取Token,在控制器上加入[AllowAnonymous]5.鉴权,在控制器上加入[Authorize] 阅读全文
posted @ 2023-06-07 15:51 microsoft-zhcn 阅读(196) 评论(0) 推荐(0) 编辑
摘要:1.NetCore 控制台应用程序依赖注入 添加依赖项:Microsoft.Extensions.Hosting using System; using System.Runtime; using ClassLibrary1; using Microsoft.Extensions.Configura 阅读全文
posted @ 2023-06-06 09:57 microsoft-zhcn 阅读(174) 评论(0) 推荐(1) 编辑
摘要:dotnet rundotnet run --urls=http: //*:8080 //urls指定ip和端口dotnet watch run //watch监听程序修改,一旦修改则重新启动dotnet watch run --urls=http: //*:8080dotnet run -p NE 阅读全文
posted @ 2023-06-06 09:29 microsoft-zhcn 阅读(34) 评论(0) 推荐(0) 编辑
摘要:生成单独的exe文件 C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe Program.cs生成 exe 文件的步骤如下: 1. 使用文本编辑器(如 Notepad++ 或 Visual Studio Code)编写 C# 源代码,并将其保存 阅读全文
posted @ 2023-06-06 08:38 microsoft-zhcn 阅读(1021) 评论(0) 推荐(0) 编辑

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