public DMNgheNghiepDTO DMNgheNghiepIDataReader(IDataReader idr) { var dmNgheNghiepDTO = new DMNgheNghiepDTO { ID = (idr["ID"] is DBNull) ? Guid.NewGuid() : Guid.Parse(idr["ID"].ToString()), MaNgheNghiep = (idr["MaNgheNghiep"] is DBNull) ? string.Empty : idr["MaNgheNghiep"].ToString(), TenNgheNghiep = (idr["TenNgheNghiep"] is DBNull) ? string.Empty : idr["TenNgheNghiep"].ToString() }; return dmNgheNghiepDTO; }
public DMNgheNghiepDAL() { _dmNgheNghiepDto = new DMNgheNghiepDTO(); }