dataRow转化为对象
对象类名useInfo,int,short,string,DateTime格式如下:
userInfo.ErrorTimes = int.Parse(dataRow["ErrorTimes"].ToString());
userInfo.DelFlag = short.Parse(dataRow["DelFlag"].ToString());
userInfo.UserName = dataRow["UserName"].ToString();
userInfo.CreateDate = DateTime.Parse(dataRow["CreateDate"] == DBNull.Value ? SqlDateTime.MinValue.ToString() : dataRow["CreateDate"].ToString());