Beispiel #1
0
        public ExtendedCollection<City> GetCityList(int SID)
        {
            ExtendedCollection<City> list = new ExtendedCollection<City>();
            StateID = SID;
            IDataReader dr = GetData;

            while (dr.Read())
            {

                City item = new City();
                if (dr["City_Name"] != DBNull.Value)
                {
                    item.Name = (string)dr["City_Name"];
                }
                if (dr["City_ID"] != DBNull.Value)
                {
                    item.ID = (int)dr["City_ID"];
                }

                list.Add(item);
            }

            dr.Close();

            return list;
        }
Beispiel #2
0
 public override int Add(City c)
 {
     string name = c.Name;
     int id = c.ID;
     return Blogic.AddNewCity(name, id);
 }
Beispiel #3
0
 public virtual int Deactivate(City c)
 {
     return 0;
 }
Beispiel #4
0
 public virtual int Update(City c)
 {
     return 0;
 }
Beispiel #5
0
 public virtual int Add(City c)
 {
     return 0;
 }