摘要: public class IISManager { /// <summary> /// 创建一个站点 /// </summary> /// <param name="name">站点名称</param> /// <param name="physicalPath">项目所在路径</param> // 阅读全文
posted @ 2021-03-02 12:52 Provedl 阅读(290) 评论(0) 推荐(0) 编辑
摘要: //判断是否已经安装iis public static bool ExistSqlServerService(string tem) { bool ExistFlag = false; ServiceController[] service = ServiceController.GetServic 阅读全文
posted @ 2021-03-02 12:45 Provedl 阅读(263) 评论(0) 推荐(0) 编辑
摘要: web config 配置如下: <add key="ewnhUrl" value="192.168.0.1" /> 读取文件并修改 XmlDocument xml = new XmlDocument(); //路径 var ConfigPathew = rootPath + "\\dddl\\Co 阅读全文
posted @ 2021-02-26 16:02 Provedl 阅读(427) 评论(0) 推荐(1) 编辑
摘要: 通过 NetFx3.cab 文件安装 NetFx3.cab下载链接: 链接:https://pan.baidu.com/s/1VHaMFt-41W7a82VFreUchA 提取码:7n59 安装方法:下载NetFx3.cab后将其放于C盘WINDOWS文件夹下(C:\Windows) 点击“开始”找 阅读全文
posted @ 2020-11-23 16:35 Provedl 阅读(480) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// datetime修改为corn表达式用于自动预测 /// </summary> /// <param name="time"></param> /// <returns></returns> public string DatetimeToCron(string 阅读全文
posted @ 2020-10-28 17:40 Provedl 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 1.安装依赖包 Install-Package Hangfier 2.新建OWIN.Startup;(有就不用加了;代码如下) //获取数据库连接串 string myConn = System.Configuration.ConfigurationManager.ConnectionStrings 阅读全文
posted @ 2020-10-28 17:08 Provedl 阅读(867) 评论(0) 推荐(0) 编辑
摘要: 链接:https://pan.baidu.com/s/1fUFFAVvb8RTO4axocYHVQA 提取码:4rog 复制这段内容后打开百度网盘手机App,操作更方便哦--来自百度网盘超级会员V1的分享 阅读全文
posted @ 2020-10-18 21:56 Provedl 阅读(233) 评论(0) 推荐(1) 编辑
摘要: var builder = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json", optional: true, reloadOnChange 阅读全文
posted @ 2020-09-02 15:05 Provedl 阅读(122) 评论(0) 推荐(0) 编辑
摘要: int total = 0; //获取数据总数 total = result.Count(); //判断是否需要排序if (!string.IsNullOrEmpty(real.sortName) && (!real.sortType.ToLower().Equals("desc") || !rea 阅读全文
posted @ 2020-09-01 09:41 Provedl 阅读(837) 评论(0) 推荐(0) 编辑
摘要: --mysql 循环插入 DROP PROCEDURE IF EXISTS proc_initData;-- 如果存在此存储过程则删掉 DELIMITER $ CREATE PROCEDURE proc_initData() BEGIN DECLARE i INT DEFAULT 1; WHILE 阅读全文
posted @ 2020-07-03 13:57 Provedl 阅读(137) 评论(0) 推荐(0) 编辑