Esempio n. 1
0
        public static List <DisposalReasons> ToList(BLL.DisposalReasons v)
        {
            List <DisposalReasons> list = new List <DisposalReasons>();

            while (!v.EOF)
            {
                DisposalReasons t = new DisposalReasons();
                if (!v.IsColumnNull("ID"))
                {
                    t.ID = v.ID;
                }
                if (!v.IsColumnNull("Reason"))
                {
                    t.Reason = v.Reason;
                }

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

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