大家帮忙看看这句话,怎么写啊!!?
private void SetStudentData(IDataReader idr, StudentInfo studentInfo)
{
studentInfo.Name = idr.GetString(0);
studentInfo.Sex = idr.GetBoolean(1);
studentInfo.Birthday = idr.GetDateTime(2);
studentInfo.Nation = idr.GetString(3);
studentInfo.NationPlace = idr.GetString(4);
studentInfo.Address = idr.GetString(5);
studentInfo.Image = (byte[])idr.GetValue(6);//就这句话怎么写啊
studentInfo.Memo = idr.GetString(7);
studentInfo.StudentStatus = idr.GetString(8);
}
studentInfo.image 是 byte[] 类型;
数据库中是 image 类型;