Ejemplo n.º 1
0
        public static List <ItemSupplyCategory> ToList(BLL.ItemSupplyCategory v)
        {
            List <ItemSupplyCategory> list = new List <ItemSupplyCategory>();

            while (!v.EOF)
            {
                ItemSupplyCategory t = new ItemSupplyCategory();
                if (!v.IsColumnNull("ID"))
                {
                    t.ID = v.ID;
                }
                if (!v.IsColumnNull("ItemID"))
                {
                    t.ItemID = v.ItemID;
                }
                if (!v.IsColumnNull("CategoryID"))
                {
                    t.CategoryID = v.CategoryID;
                }


                list.Add(t);
                v.MoveNext();
            }
            return(list);
        }
        public static List<ItemSupplyCategory> ToList(BLL.ItemSupplyCategory v)
        {
            List<ItemSupplyCategory> list = new List<ItemSupplyCategory>();
            while (!v.EOF)
            {
                ItemSupplyCategory t = new ItemSupplyCategory();
              if(!v.IsColumnNull("ID"))
                    t.ID = v.ID;
              if(!v.IsColumnNull("ItemID"))
                    t.ItemID = v.ItemID;
              if(!v.IsColumnNull("CategoryID"))
                    t.CategoryID = v.CategoryID;

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