01 2021 档案

摘要:1.判断文件夹是否存在 //获取或设置当前工作目录的完全限定路径。 string sPath = Environment.CurrentDirectory;//将两个字符串合并到一个路径中。sPath = Path.Combine(Environment.CurrentDirectory, "Fol 阅读全文
posted @ 2021-01-21 15:58 Ethan_Try 阅读(13109) 评论(0) 推荐(3)
摘要:新增字段:alter table [表名] add [字段名] 字段类型 not null default 0 修改字段类型:alter table [表名] alter column [列名] [列类型] not null 修改表名:exec sp_rename '旧表名 ' ,'新表名' 修改字 阅读全文
posted @ 2021-01-20 18:17 Ethan_Try 阅读(605) 评论(0) 推荐(0)
摘要:1、创建项目。选择Windows Form App(.NET) 模板创建 2、新建配置文件,取名appsettings.json 3、添加如下配置,自动生成的可以删除,注意 appsettings.json 文件属性一定要设置始终复制 { "ConnectionStrings": { "PCBPTS 阅读全文
posted @ 2021-01-20 16:15 Ethan_Try 阅读(635) 评论(0) 推荐(0)