摘要: // 获取程序的基目录。 System.AppDomain.CurrentDomain.BaseDirectory // 获取模块的完整路径。 System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName // 获取和设置当前目 阅读全文
posted @ 2023-05-16 23:36 qingjiawen 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Embedded Resource表示数据库已嵌入到您的dll中。Copy to output directory设置在这种情况下不适用,它用于Build Action: Content 嵌入数据库后,您基本上必须在首次使用时将其取消嵌入。为此,将其从Assembly中读取并将其存储到文件中。 cl 阅读全文
posted @ 2023-05-16 22:21 qingjiawen 阅读(96) 评论(0) 推荐(0) 编辑