当前位置:Gxlcms > 数据库问题 > Sqlite EF6注册

Sqlite EF6注册

时间:2021-07-01 10:21:17 帮助过:3人阅读


       //注册EF string executeFile = @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Ngen.exe"; string[] dllNames = new string[]{ @"System.Data.SQLite.Linq.dll" ,//1 @"System.Data.SQLite.EF6.dll",//2 @"System.Data.SQLite.dll" }; //执行注册 for (int i = 0; i < dllNames.Length; i++) { //构建注册语句 string installCommand = string.Format("{0} {1}{2}{3}", "install", (char)34, dllNames[i],(char)34); Process installProcess = Process.Start(executeFile, installCommand); Console.WriteLine("正在注册{0},请等待...", dllNames[i]); installProcess.WaitForExit(); }


下载地址

Sqlite EF6注册

标签:

人气教程排行