internal void PopulatePlayerFromReader(LoaiQuyen loaiQuyen, IDataReader dataReader) { loaiQuyen.LoaiQuyenId = dataReader.GetString(dataReader.GetOrdinal(LoaiQuyen.LoaiQuyenFields.LoaiQuyenId.ToString())); if (!dataReader.IsDBNull(dataReader.GetOrdinal(LoaiQuyen.LoaiQuyenFields.MoTa.ToString()))) { loaiQuyen.MoTa = dataReader.GetString(dataReader.GetOrdinal(LoaiQuyen.LoaiQuyenFields.MoTa.ToString())); } }
internal List <LoaiQuyen> PopulateObjectFromReader(IDataReader data) { List <LoaiQuyen> list = new List <LoaiQuyen>(); while (data.Read()) { LoaiQuyen loaiQuyen = new LoaiQuyen(); PopulatePlayerFromReader(loaiQuyen, data); list.Add(loaiQuyen); } return(list); }