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

            while (!v.EOF)
            {
                SupplyCategory t = new SupplyCategory();
                if (!v.IsColumnNull("ID"))
                {
                    t.ID = v.ID;
                }
                if (!v.IsColumnNull("Name"))
                {
                    t.Name = v.Name;
                }
                if (!v.IsColumnNull("ParentId"))
                {
                    t.ParentId = v.ParentId;
                }
                if (!v.IsColumnNull("Code"))
                {
                    t.Code = v.Code;
                }
                //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<SupplyCategory> ToList(BLL.SupplyCategory v)
        {
            List<SupplyCategory> list = new List<SupplyCategory>();
            while (!v.EOF)
            {
                SupplyCategory t = new SupplyCategory();
              if(!v.IsColumnNull("ID"))
                    t.ID = v.ID;
              if(!v.IsColumnNull("Name"))
                    t.Name = v.Name;
              if(!v.IsColumnNull("ParentId"))
                    t.ParentId = v.ParentId;
              if(!v.IsColumnNull("Code"))
                    t.Code = v.Code;
              //if(!v.IsColumnNull("IsDeleted"))
              //      t.IsDeleted = v.IsDeleted;
              //if(!v.IsColumnNull("UpdateTime"))
              //      t.UpdateTime = v.UpdateTime;

                list.Add(t);
                v.MoveNext();
            }
            return list;
        }