public static List <Zone> ToList(BLL.Zone v)
        {
            List <Zone> list = new List <Zone>();

            while (!v.EOF)
            {
                Zone t = new Zone();
                if (!v.IsColumnNull("ID"))
                {
                    t.ID = v.ID;
                }
                if (!v.IsColumnNull("ZoneName"))
                {
                    t.ZoneName = v.ZoneName;
                }
                if (!v.IsColumnNull("RegionId"))
                {
                    t.RegionId = v.RegionId;
                }
                if (!v.IsColumnNull("ZoneCode"))
                {
                    t.ZoneCode = v.ZoneCode;
                }
                //if(!v.IsColumnNull("IsDeleted"))
                //      t.IsDeleted = v.IsDeleted;
                //if(!v.IsColumnNull("UpdateTime"))
                //      t.UpdateTime = v.UpdateTime;

                list.Add(t);
                v.MoveNext();
            }
            return(list);
        }
        public static List <int> GetDeletedIDsAfter(long LastVersion)
        {
            BLL.Zone v = new BLL.Zone();
            //v.LoadDeletedIDs(LastVersion);
            List <int> list = new List <int>();

            while (!v.EOF)
            {
                list.Add((int)v.GetColumn("ID"));
                v.MoveNext();
            }
            return(list);
        }
 public static List<int> GetDeletedIDsAfter(long LastVersion)
 {
     BLL.Zone v = new BLL.Zone();
     //v.LoadDeletedIDs(LastVersion);
     List<int> list = new List<int>();
     while (!v.EOF)
     {
         list.Add((int)v.GetColumn("ID"));
         v.MoveNext();
     }
     return list;
 }