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