上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: 第一步:手动创建文件夹(Areas),然后再添加区域(Admin),此时会自动创建文件夹(Controllers、Data、Models、Views) 第二步:创建MVC控制器(Home),并在控制器上添加策略 [Area("Admin")],名称要和文件夹名称相同 namespace Micro. 阅读全文
posted @ 2023-11-02 00:11 microsoft-zhcn 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 一、sqlserver 查询某个表的列名称、说明、备注、类型等 --sqlserver 查询某个表的列名称、说明、备注、类型等 SELECT 表名 = case when a.colorder = 1 then d.name else '' end, 表说明 = case when a.colord 阅读全文
posted @ 2023-10-23 09:21 microsoft-zhcn 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1.执行存储过程 sp_addlinkedserver 以将服务器添加到 sys.servers -server124为远程服务器的别名 exec sp_addlinkedserver 'server124', ' ', 'SQLOLEDB ', '远程服务器名或ip地址 ' exec sp_add 阅读全文
posted @ 2023-10-21 14:19 microsoft-zhcn 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.cnblogs.com/michaelshen/p/16532685.html https://blog.csdn.net/weixin_72077052/article/details/130596183 https://cloud.tencent.com/deve 阅读全文
posted @ 2023-10-12 14:30 microsoft-zhcn 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/dmhp/p/5291129.html 阅读全文
posted @ 2023-10-05 16:23 microsoft-zhcn 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 【例】查询所有数据库 exec sp_helpdb 【例】查询当前数据库中所有表 use microdb select* from sysobjects where xtype='U' 说明:不同的对象用xtype来标识。C = CHECK 约束D = 默认值或 DEFAULT 约束F = FORE 阅读全文
posted @ 2023-09-29 00:10 microsoft-zhcn 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/feihusurfer/p/15349843.html 阅读全文
posted @ 2023-09-28 22:26 microsoft-zhcn 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 安装:Nodejs安装依赖包node_modules:npm install安装webpack:npm install webpack -gnpm install webpack-cli -g安装yarn:npm install -g yarn执行yarn:yarn install安装:axiosy 阅读全文
posted @ 2023-09-28 08:52 microsoft-zhcn 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/guohu/p/16558294.html 阅读全文
posted @ 2023-09-27 10:29 microsoft-zhcn 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 第一步 【SQL Server 代理】 → 【作业】(右键)→【新建作业】 图1:新建作业 第二步 在弹出的对话框中,我们输入作业名称testjob,并点击【已启用】 第三步 然后我们再点击左侧菜单栏【步骤】,在显示的页面中点击左下角的【创建】 第四步 在弹出的对话框中进行如下操作: 如图4 步骤1 阅读全文
posted @ 2023-09-27 10:09 microsoft-zhcn 阅读(188) 评论(0) 推荐(0) 编辑
摘要: SQL Server数据库手册:https://www.cnblogs.com/michaelshen/p/17095662.html 阅读全文
posted @ 2023-09-27 09:08 microsoft-zhcn 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 一、表设计 以及 表数据 1.表设计 2.表数据 二、SELECT语法格式: SELECT [ALL︱DISTINCT][TOP n][<目标字段表达式>[,…n]] [INTO <新表>] FROM <表名或视图名>[,<表名或视图名>[…n]] WHERE <条件表达式>] GROUP BY < 阅读全文
posted @ 2023-09-25 11:45 microsoft-zhcn 阅读(94) 评论(0) 推荐(0) 编辑
摘要: exec sp_configure 'show advanced options',1 RECONFIGURE WITH OVERRIDE go exec sp_configure 'database mail xps',1 RECONFIGURE WITH OVERRIDE go --2.创建邮件 阅读全文
posted @ 2023-09-23 17:24 microsoft-zhcn 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 同义词:就是定义一个字符串名称,用来代替一个有意义的引用对象。 创建同义词 CREATE SYNONYM [dbo].[__user] FOR [数据库名称].[dbo].[tuser] 引用同义词 select * from __user 删除同义词 drop synonym __user 查询所 阅读全文
posted @ 2023-09-22 15:54 microsoft-zhcn 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/hoojo/archive/2011/07/21/2112559.html SQL Server 编程示例 一、变量1、局部变量DECLARE @局部变量名 数据类型【例】创建varchar变量 DECLARE @变量名 varchar(50); 阅读全文
posted @ 2023-09-22 14:19 microsoft-zhcn 阅读(45) 评论(0) 推荐(0) 编辑
摘要: SQL Server 目录结构 数据库 系统数据库 master model msdb tempdb 数据库快照 使用 Transact-SQL 用户数据库 数据库关系图 表 系统表 File Tables 外部表 图形表 用户表 视图 系统视图 用户视图 外部资源 外部数据源 外部文件格式 同义词 阅读全文
posted @ 2023-09-20 16:01 microsoft-zhcn 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 1.创建项目目录:mkdir HelloWorld-Flask2.进入项目目录:cd HelloWorld-Flask3.创建虚拟环境:python3 -m venv .venv4.安装Flask框架:python3 -m pip install flask4.1.查看Flask版本:python3 阅读全文
posted @ 2023-09-15 17:00 microsoft-zhcn 阅读(20) 评论(0) 推荐(0) 编辑
摘要: --如果表名含有中文,就需要用nvarchar 和 N'' DECLARE @strSQL NVARCHAR(MAX) SET @strSQL='' SELECT @strSQL=@strSQL+';drop table '+[name] from sysobjects WHERE [type]=' 阅读全文
posted @ 2023-08-28 09:29 microsoft-zhcn 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 解决办法:外键添加[JsonIgnore] 特性即可解决 /// <summary> /// 文章相册 /// </summary> [Table("ArticleAlbum")] public class ArticleAlbumModel { /// <summary> /// 主键ID /// 阅读全文
posted @ 2023-08-26 10:52 microsoft-zhcn 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 1.安装NuGet程序包 Microsoft.EntityFrameworkCore.Tools Microsoft.EntityFrameworkCore.SqlServer 2.配置Program,注入 AddDbContext 单例模式 builder.Services.AddDbContex 阅读全文
posted @ 2023-07-17 00:12 microsoft-zhcn 阅读(183) 评论(1) 推荐(0) 编辑
摘要: 引用Nuget包 AutoMapper AutoMapper.Extensions.Microsoft.DependencyInjection 配置Program.cs //添加Profile builder.Services.AddAutoMapper(AppDomain.CurrentDomai 阅读全文
posted @ 2023-07-08 20:32 microsoft-zhcn 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 参考: 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 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 参考: http://layui.xhcen.com/doc/doc.html 表格 http://layui.apixx.net/demo/table.html 阅读全文
posted @ 2023-06-29 14:39 microsoft-zhcn 阅读(9) 评论(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 阅读(139) 评论(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 阅读(299) 评论(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 阅读(280) 评论(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 阅读(217) 评论(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 阅读(399) 评论(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 阅读(464) 评论(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 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 1.安装 NuGet 包:Microsoft.AspNetCore.Authentication.JwtBearer2.配置:appsettings.json3.配置:Program.cs4.获取Token,在控制器上加入[AllowAnonymous]5.鉴权,在控制器上加入[Authorize] 阅读全文
posted @ 2023-06-07 15:51 microsoft-zhcn 阅读(92) 评论(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 阅读(140) 评论(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 阅读(26) 评论(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 阅读(763) 评论(0) 推荐(0) 编辑
摘要: Transient 瞬时生命周期 每一次GetService 都会创建一个新的实例 瞬时生名周期: 每次需要都创建一个全新的 Singleton 整个应用程序生命周期内只创建一个实例 Scoped 在同一个Scope内只初始化一个实例,可以理解为(每一个requset 级别只创建一个实例,同一个Ht 阅读全文
posted @ 2023-05-26 08:35 microsoft-zhcn 阅读(29) 评论(0) 推荐(0) 编辑
摘要: NetCore中的过滤器主要有以下几种 Authorization Filter 授权认证过滤器 Resource Filter 资源过滤器 Action Filter Action过滤器 Exception Filter 异常过滤器 Result Filter 结果过滤器 Filter的执行顺序 阅读全文
posted @ 2023-05-26 08:34 microsoft-zhcn 阅读(14) 评论(0) 推荐(0) 编辑
摘要: REPLACE(REPLACE(REPLACE(LTRIM(RTRIM(c.fokstd)), ' ', ' ' + '#'), '#' + ' ', ''), '#', '') 阅读全文
posted @ 2023-05-24 12:56 microsoft-zhcn 阅读(18) 评论(0) 推荐(0) 编辑
摘要: --清除临时表1 drop table #temp --取得休位次数 select * into #temp from (select fbarprjcode,fmolotno,fbarfgsize,fbarfgsize2,fsmalltypename,len(fbarfgsize2)-len(re 阅读全文
posted @ 2023-05-23 16:31 microsoft-zhcn 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 邮件API:http://60.247.147.126:8082/ API参数: {"tolist":"接收邮箱@qq.com","subject":"测试主题","body":"<html><body><div style='color:red;'>测试内容</div></body></html> 阅读全文
posted @ 2023-05-17 23:30 microsoft-zhcn 阅读(21) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页