單擊asp.net應用程序中的按鈕process.start()運行帶有參數的edmgen工具。而且我趕上錯誤: Process.Start()edmgen
var cs =ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString;
string myArgs="/mode:fullgeneration /c:\""+cs+"\" /project:nwd /entitycontainer:SchoolEntities /namespace:SchoolModel /language:CSharp ";
string filename= GetFrameworkDirectory() + "\\EdmGen.exe";
ProcessStartInfo startInfo = new ProcessStartInfo(filename,myArgs);
startInfo.UseShellExecute = false;
//startInfo.RedirectStandardError = true;
Process myGenProcess = Process.Start(startInfo);
//genInfo.Text = myGenProcess.StandardError.ReadToEnd();
如何解決這一問題?
我剛加入/ outssdl:d:\「/ generateEntityModel.ssdl \」並解決我的問題。我也必須添加options/outmsl/outssdl/outobjectlayer/outviews。謝謝。 – loviji 2010-04-25 20:12:40