dbInstall= new
DataBaseInstaller(stateSaver["server"].ToString(),
stateSaver["database"].ToString(),
stateSaver["target"].ToString());
}
else{
dbInstall= new
DataBaseInstaller(
stateSaver["server"].ToString(),
stateSaver["database"].ToString(),
stateSaver["username"].ToString(),
stateSaver["password"].ToString(),
stateSaver["target"].ToString());
}
dbInstall.CreateDataBase();
dbInstall.CreateObjects();
dbInstall.CreateRecords();
}
}
catch(InstallException inst)
{
throw (inst);
}
文章来源于领测软件测试网 https://www.ltesting.net/