Ejemplo n.º 1
0
        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()));
            }
        }
Ejemplo n.º 2
0
        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);
        }