您好,求助c#高手,帮帮忙看下这段代码什么意思?

public EmployeeManage()
{
InitializeComponent(); 
this.connectionStr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +Application.StartupPath + "\\ManPowerManage.mdb"; 
this.selectStr="select * from Employee";
this.Connection1=new OleDbConnection(this.connectionStr);
this.Command1=new OleDbCommand();
this.dataAdapter1=new OleDbDataAdapter(this.selectStr,this.Connection1);
this.selectStr="select * from Dimmision";
this.dataAdapter2=new OleDbDataAdapter(this.selectStr,this.Connection1);
this.Command1.Connection=this.Connection1;
this.Command1.CommandText=this.commandStr;
}

白衣非少年
浏览 190回答 1
1回答

莫回无

一段用ole方式连接excel数据库文件的代码,数据库在应用程序的当前目录下。从数据库的表Employee读出员工信息,并且能用“Command1”操作数据库
打开App,查看更多内容
随时随地看视频慕课网APP