摘要:
1.日志记录Log.cs public class Log { private string Event { get; set; } private DateTime Time { get; set; } /// <summary> /// 日志记录,写入文件 /// </summary> ///
阅读全文
posted @ 2020-04-17 14:56
RookieBoy666
阅读(144)
推荐(0)
编辑
摘要:
如下: if (!File.Exists(@"D:\MyFile.txt")) { FileStream fs = new FileStream(@"D:\MyFile.txt", FileMode.Create, FileAccess.Write); } else { using (FileStr
阅读全文
posted @ 2020-04-17 14:25
RookieBoy666
阅读(775)
推荐(0)
编辑
摘要:
App.config中: <appSettings> <add key="connectionstring" value="Data Source=127.0.0.1;Initial Catalog=DatabaseName;Persist Security Info=True; User ID=s
阅读全文
posted @ 2020-04-17 13:27
RookieBoy666
阅读(485)
推荐(0)
编辑