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

            while (!v.EOF)
            {
                Route t = new Route();
                if (!v.IsColumnNull("ID"))
                {
                    t.ID = v.RouteID;
                }
                if (!v.IsColumnNull("Name"))
                {
                    t.Name = v.Name;
                }
                //if(!v.IsColumnNull("HubID"))
                //      t.HubID = v.HubID;
                //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.Route v = new BLL.Route();
            // 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.Route v = new BLL.Route();
        // v.LoadDeletedIDs(LastVersion);
     List<int> list = new List<int>();
     while (!v.EOF)
     {
         list.Add((int)v.GetColumn("ID"));
         v.MoveNext();
     }
     return list;
 }