全文预览

软件工程课程设计报告材料

上传者:蓝天 |  格式:doc  |  页数:16 |  大小:845KB

文档介绍
;dad.Fill(ds,"tb_photo");con.Close();returnds;}publicDataSetgetAllPicToN(){OleDbConnectioncon=Db.createNewCon();OleDbDataAdapterdad=newOleDbDataAdapter();dad.mand=mand("selecttop10*from[tb_photo]orderby[id]DESC",con);DataSetds=newDataSet();dad.Fill(ds,"tb_photo");con.Close();returnds;}publicDataSetgetAllPicType(){OleDbConnectioncon=Db.createNewCon();OleDbDataAdapterdad=newOleDbDataAdapter();dad.mand=mand("select*from[tb_type]orderby[id]asc",con);DataSetds=newDataSet();dad.Fill(ds,"tb_type");con.Close();returnds;}publicDataSetgetAllPicTypeById(intid){OleDbConnectioncon=Db.createNewCon();mandcmd=mand("select*from[tb_type]whereid=@idorderby[id]asc",con);cmd.Parameters.AddWithValue("@id",id);OleDbDataAdapterdad=newOleDbDataAdapter(cmd);DataSetds=newDataSet();dad.Fill(ds,"tb_type");con.Close();

收藏

分享

举报
下载此文档