Exemplo n.º 1
0
        public List <ENLineCustomerOrder> ReadAll()
        {
            List <ENLineCustomerOrder> ret = new List <ENLineCustomerOrder>();
            DataTable table = cad.SelectAll();

            try
            {
                foreach (DataRow row in table.Rows)
                {
                    ENLineCustomerOrder line = new ENLineCustomerOrder();
                    line.FromRow(row);
                    ret.Add(line);
                }

                return(ret);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }