健康一贴灵,专注医药行业管理信息化

08 2022 档案

摘要:之前一直用的mysql,这个也基本上是主流,主键自增是很多建表规范中的硬性要求,不过这两种数据库主键自增的区别还是很大的 通常navicat中对mysql 主键自增直接客户端指定即可,不过对PG貌似不支持客户端指定,所以需要执行一下sql 如果尚未创建表,可用如下方法 方法一: create tab 阅读全文
posted @ 2022-08-31 15:29 一贴灵 阅读(263) 评论(0) 推荐(0)
摘要:0判断服务状态 using System.ServiceProcess; // ServiceController sc; try { sc = new ServiceController(SERVICE_NAME); } catch(ArgumentException) { return "Inv 阅读全文
posted @ 2022-08-30 09:20 一贴灵 阅读(1910) 评论(0) 推荐(0)
摘要:总结下,winform开发windows服务全过程 ;windows服务的代码中,不能有MessageBox.Show()等winform的控件引用 。可以使用写文本日志的方法调试; 1、添加服务引用,输入 webservice的地址,点转到,然后给引用的服务起个“命名空间”名字,之后会在“解决方案 阅读全文
posted @ 2022-08-22 16:24 一贴灵 阅读(640) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. 阅读全文
posted @ 2022-08-15 16:17 一贴灵 阅读(536) 评论(0) 推荐(0)
摘要:批处理命令获取当前盘符和当前目录 当前盘符:%~d0当前路径:%cd%当前执行命令行:%0当前bat文件路径:%~dp0当前bat文件短路径:%~sdp0 测试 1 2 3 4 5 echo 当前盘符:%~d0 echo 当前路径:%cd% echo 当前执行命令行:%0 echo 当前bat文件路 阅读全文
posted @ 2022-08-15 09:35 一贴灵 阅读(1088) 评论(0) 推荐(0)
摘要:使用winform程序控制window服务的操作 c#之添加window服务(定时任务) - 腾讯云开发者社区-腾讯云 (tencent.com) 79条消息) C#实操1 创建windows服务,并用winform窗口程序实现安装服务、开启服务、停止服务、卸载服务_67号人生的博客-CSDN博客_ 阅读全文
posted @ 2022-08-12 16:56 一贴灵 阅读(1789) 评论(0) 推荐(0)
摘要:1、生成XML并压缩; DataTable dt2 = DBHelperPg.ExecuteDataTable(sql); dgvStore.DataSource = dt2; string xmlFilename = "666.xml"; FileStream fsWriteXml = new F 阅读全文
posted @ 2022-08-11 16:00 一贴灵 阅读(343) 评论(0) 推荐(0)
摘要:DataTable dt2 = DBHelperPg.ExecuteDataTable(sql); dgvStore.DataSource = dt2; string xmlFilename = "666.xml"; FileStream fsWriteXml = new FileStream(xm 阅读全文
posted @ 2022-08-11 14:10 一贴灵 阅读(546) 评论(0) 推荐(0)
摘要:C#逆向 反编译工具dotPeekdotPeek官网地址:https://www.jetbrains.com/decompiler/ 是 JetBrains 开发的一款.Net反编译工具,是.Net工具套件中的一个 将 .NET 程序集反编译为 C#dotPeek 是一款基于 ReSharper 捆 阅读全文
posted @ 2022-08-11 09:46 一贴灵 阅读(2154) 评论(0) 推荐(0)
摘要:原文 :(79条消息) C#连接Oracle数据库_闲齁齁的博客-CSDN博客_c# oracle 1.C#连接Oracle数据库C#连接Oracle数据库目前常用的有三种方式:(1)System.Data.OracleClient.dll(微软)(2)Oracle.DataAccess.Clien 阅读全文
posted @ 2022-08-09 11:31 一贴灵 阅读(1248) 评论(0) 推荐(0)
摘要:using Microsoft.Win32; using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Xml; namespace MAutoUpdate { p 阅读全文
posted @ 2022-08-09 09:30 一贴灵 阅读(182) 评论(0) 推荐(0)
摘要:如果想替换第3个位置的“b",为“E" string s = "bbbbbccc"; char[] c = s.ToCharArray(); c[3] = 'e'; s = new string(c); 阅读全文
posted @ 2022-08-05 08:25 一贴灵 阅读(1130) 评论(0) 推荐(0)

学以致用,效率第一