摘要:
1.在项目里新增一个文件夹Filter 2.在Filter文件里头新建一个MyCustomerFilterAttribute.cs的类(继承ActionFilterAttribute,引用using System.Web.Mvc;) 代码: 控制器引用 效果图(运行地址:http://localho 阅读全文
摘要:
摘自:https://www.cnblogs.com/xy888/p/9117071.html 阅读全文
摘要:
1.新建一个UserHelper 和 tb_User 类 2.controller返回视图 3.页面引用UserHelper相同的命名空间 运行显示结果如下: 阅读全文
摘要:
--批量插入(事先查询相对应的字段到临时表#temp1) SELECT ID,Name,Status INTO #temp1 FROM dbo.Doctor d WHERE d.ID NOT IN (SELECT ID FROM dbo.UP_Doctor) INSERT INTO dbo.UP_Doctor ( ID, Name, Status ) SELECT * FROM #temp... 阅读全文
摘要:
感谢:https://www.cnblogs.com/ericli-ericli/p/4716761.html https://www.cnblogs.com/wxdblog/p/6888240.html 阅读全文
摘要:
一、安装Git for Windows(又名msysgit) 下载地址: https://git-for-windows.github.io/ 在官方下载完后,安装到Windows Explorer integration的时候,将选项中将“Git Bash here”和“Git GUI here” 阅读全文
摘要:
摘抄自:https://www.cnblogs.com/Caceolod/articles/2176325.html 阅读全文
摘要:
IF exists (select * from syscolumns where name='字段名' and id=object_id('表名')) begin select '已存在,不需添加!' end ELSE begin ALTER TABLE dbo.表名 add 字段名 VARCHAR(36) EXEC sys.sp_addextendedprope... 阅读全文
摘要:
IF NOT EXISTS ( SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[表名]') AND OBJECTPROPERTY(id, N'IsUserTable') = 1 ) begin SELECT '不存在... 阅读全文
摘要:
1.编辑自动更新bat文件(右键使用txt编辑) 2.将qq.exe修改成需要执行的进程名称(例如EPSDisplay.exe,查看图1-1) 图1-1 3.在服务器上,创建更新的文件夹88888888(或者另外取个名字,并且修改图1-1的88888888相对应的文件路径内容),并将88888888 阅读全文