public ExtendedCollection<Country> GetCountryList() { ExtendedCollection<Country> list = new ExtendedCollection<Country>(); IDataReader dr = GetData; while (dr.Read()) { Country item = new Country(); if (dr["Country_Name"] != DBNull.Value) { item.Name = (string)dr["Country_Name"]; } if (dr["Country_ID"] != DBNull.Value) { item.ID = (int)dr["Country_ID"]; } list.Add(item); } dr.Close(); return list; }
public virtual int Update(Country c) { return 0; }
public virtual int Deactivate(Country c) { return 0; }
public virtual int Add(Country c) { return 0; }
public override int Add(Country c) { string name = c.Name; int id = c.ID; return Blogic.AddNewCountry(name); }