Esempio n. 1
0
        private static List <Item> ReadListFromDatabase()
        {
            ITextReader reader   = new TextFileReaderModule(SQLQueryFile);
            String      sqlQuery = reader.Read();
            SqlQuery    query    = new SqlQuery {
                Query = sqlQuery
            };

            SqlListReaderModule <Item> sqlReader = new SqlListReaderModule <Item> {
                Context = ConnectionString
            };
            List <Item> list = sqlReader.Read(query);

            return(list);
        }