public student getStudentInfo(string id)
{
从数据库取得name等,比如reader["name"] ;
student s=new student(0;
s.id=id;
s.name=reader["name"];
return s;
}
{
从数据库取得name等,比如reader["name"] ;
student s=new student(0;
s.id=id;
s.name=reader["name"];
return s;
}
{
}
{
从数据库取得name等,比如reader["name"] ;
student s=new student();
s.id=id;
s.name=reader["name"];
return s;
}
顺便提一下为何 czhenq(挨饿中……) 直接拷我的回贴,怪。
public IList getInfo(string code),我想知道什么情况下要返回IList的呢?是不是它也是一个
类似于object的类型呢?
public int addInfo(student studentInfo)
{
}
正确返回1,错误返回0
我不知道该如何用这个student对象作为一条新的数据库记录提交到数据库中,请大家指点指点