lrxz :) I have the experience to deploy web application using setup project provided by visual studio.net there are 7 projects in the Duwamish7.We just use 5 .they are : " BusinessFacadeProjects ","BusinessRulesProjects","DataAccessProjects","SystemFrameworksProjects" and "WebUIProjects". Till now " WebServiceProjects" and " WinUIProjects " are not used. please specify if you have experience by wizard.thanks
I have the experience to deploy web application using setup project provided by visual studio.net
there are 7 projects in the Duwamish7.We just use 5 .they are : " BusinessFacadeProjects ","BusinessRulesProjects","DataAccessProjects","SystemFrameworksProjects" and "WebUIProjects".
Till now " WebServiceProjects" and " WinUIProjects " are not used.
please specify if you have experience by wizard.thanks
在没有涉及WebService的情况下,编译起来还是比较简单,只是可能需要要把Common.dll,DataAcess.dll两个文件手工添加到安装程序的bin目录下,其余按向导即可;至于涉及WebService的情况,那就像微软问一下吧,目前来讲,我还没有见过较成功的例子。
try
{
MessageBox.Show("请选择数据库"); DataLinksClass objDataLink=new DataLinksClass();
objDataLink.hWnd = this.Handle.ToInt32();
Connection objConn = (Connection) objDataLink.PromptNew();
objConn.Open(objConn.ConnectionString,null,null,(int) ConnectModeEnum.adModeUnknown);
Object RecordsAffected=null;
Recordset objRecordset = objConn.Execute("select * from products",out RecordsAffected,(int) CommandTypeEnum.adCmdText);
DataSet objDS = new DataSet();
OleDbDataAdapter oda = new OleDbDataAdapter();
oda.Fill(objDS,objRecordset,"products"); dataGrid1.DataSource=objDS.DefaultViewManager; objDataLink=null;
objConn=null;
objDS=null;
oda=null;
}
catch(Exception exObj)
{
MessageBox.Show(exObj.Message);
}
客户端的安装就比较简单啦,