List<Newss> _objNwslst = new List<Newss>(); List<Industry> _objIndstry = new List<Industry>(); while (sDr.Read()) { _objIndstry.Add(new Industry() { ParentID = sDr.GetInt32(sDr.GetOrdinal("Industry")), IndstryName = sDr.GetString(sDr.GetOrdinal("IndstryName")), }); _objState.CountryID = sDr.GetInt32(sDr.GetOrdinal("CountryID")); objIndstry = _objIndstry, }); } return _objNwslst;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)