public PhuongDTO createPhuongFromReader(IDataReader iReader) { PhuongDTO p = new PhuongDTO(); p.MaPhuong = Convert.ToInt32(iReader[_fileds[0]]); p.TenPhuong = iReader[_fileds[1]].ToString(); return p; }
public PhuongDTO getPhuongInDulieu(int id) { PhuongDTO dv = new PhuongDTO(); IDataReader _iReader = base.get(id); if (_iReader.Read()) dv = createPhuongFromReader(_iReader); _iReader.Close(); return dv; }
public DuLieuDTO() { _duong = new DuongDTO(); _phuong = new PhuongDTO(); _quanHuyen = new QuanHuyenDTO(); _tenDiaDiem = new TenDiaDiemDTO(); _tinhThanh = new TinhThanhDTO(); _dichVu = new DichVuDTO(); }