Пример #1
0
        public static List <Woreda> ToList(BLL.Woreda v)
        {
            List <Woreda> list = new List <Woreda>();

            while (!v.EOF)
            {
                Woreda t = new Woreda();
                if (!v.IsColumnNull("ID"))
                {
                    t.ID = v.ID;
                }
                if (!v.IsColumnNull("WoredaName"))
                {
                    t.WoredaName = v.WoredaName;
                }
                if (!v.IsColumnNull("ZoneID"))
                {
                    t.ZoneID = v.ZoneID;
                }
                if (!v.IsColumnNull("WoredaCode"))
                {
                    t.WoredaCode = v.WoredaCode;
                }
                //if(!v.IsColumnNull("IsDeleted"))
                //      t.IsDeleted = v.IsDeleted;
                //if(!v.IsColumnNull("UpdateTime"))
                //      t.UpdateTime = v.UpdateTime;

                list.Add(t);
                v.MoveNext();
            }
            return(list);
        }
Пример #2
0
        public static List <int> GetDeletedIDsAfter(long LastVersion)
        {
            BLL.Woreda v = new BLL.Woreda();
            //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.Woreda v = new BLL.Woreda();
     //v.LoadDeletedIDs(LastVersion);
     List<int> list = new List<int>();
     while (!v.EOF)
     {
         list.Add((int)v.GetColumn("ID"));
         v.MoveNext();
     }
     return list;
 }