bll

usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Data;

namespaceblltest
{
publicclassbllStudent
{
/*publicstaticDataTableReadData(intpageindex,intpagesize,outintrowcount)
{
returntestdat.datStudent.ReadData(pageindex,pagesize,outrowcount);
}*/
publicstaticDataTableReadDataAll()
{
returntestdat.datStudent.ReadDataAll();
}
publicstaticvoiddelete(intid)
{
testdat.datStudent.delete(id);
}

publicstaticvoidAdd(stringuname,stringcode,stringschool)
{
testdat.datStudent.Add(uname,code,school);
}

publicstaticvoidedit(intid,stringuname,stringcode,stringschool)
{
testdat.datStudent.edit(id,uname,code,school);
}
publicstaticDataTableReadData(intid)
{
returntestdat.datStudent.ReadData(id);
}
}
}

你可能感兴趣的:(.net,BLL)