internal void PopulatePlayerFromReader(Quyen_LoaiQuyen q_lq, IDataReader data) { q_lq.LoaiQuyen = data.GetString(data.GetOrdinal(Quyen_LoaiQuyen.Quyen_LoaiQuyenFeilds.LoaiQuyen.ToString())); if (!data.IsDBNull(data.GetOrdinal(Quyen_LoaiQuyen.Quyen_LoaiQuyenFeilds.Quyen.ToString()))) { q_lq.Quyen = data.GetString(data.GetOrdinal(Quyen_LoaiQuyen.Quyen_LoaiQuyenFeilds.Quyen.ToString())); } }
internal List <Quyen_LoaiQuyen> PopulateObjectFromReader(IDataReader data) { List <Quyen_LoaiQuyen> list = new List <Quyen_LoaiQuyen>(); while (data.Read()) { Quyen_LoaiQuyen q_lq = new Quyen_LoaiQuyen(); PopulatePlayerFromReader(q_lq, data); list.Add(q_lq); } return(list); }