Beispiel #1
0
        private Historico one(string crud, List <string> par)
        {
            dbaccess = new DBSQLServer();

            try
            {
                var dataTable = dbaccess.Datatable(crud, par);
                return(one(dataTable, 0));
            }
            finally
            {
                dbaccess.Dispose();
            }
        }
Beispiel #2
0
        private List <Historico> listStandart(string crud, List <string> par)
        {
            var list = new List <Historico>();

            dbaccess = new DBSQLServer();

            try
            {
                var dataTable = dbaccess.Datatable(crud, par);
                for (int i = 0; i < dataTable.Rows.Count; i++)
                {
                    list.Add(one(dataTable, i));
                }
            }
            finally
            {
                dbaccess.Dispose();
            }
            return(list);
        }