能给个实例吗?我是用datareader 读取的
using (SqlDataReader reader = DBUtility.SqlHelper.ExecuteReader(connectionString, CommandType.StoredProcedure, "dbo.P_GetUserBuyDetail", parameters))
{
if (reader.Read())
{
Models.Userinfo user = new Models.Userinfo(
reader.GetString(0),
reader.GetString(2),
reader.GetString(3),
reader.GetInt32(4),
reader.GetDecimal(5),
reader.GetInt32(6),
reader.GetDecimal(8),
reader.GetDecimal(9),
reader.GetDecimal(11),
reader.GetDateTime(13),
reader.GetByte(16),
reader.GetBoolean(17)
);
list.Add(user);
}
}
return list;
第6个下表为空 我怎么去判断
我用的是存储过程读的啊