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