Пример #1
0
        public IList <Tema> LeerTemas(string comando)
        {
            var command = new SQLiteCommand(comando, m_dbConnection);
            var reader  = command.ExecuteReader();

            var temas = new List <Tema>();

            while (reader.Read())
            {
                temas.Add(Tema.Mapper(reader));
            }

            return(temas);
        }
Пример #2
0
        public Tema LeerTema(string comando)
        {
            var command = new SQLiteCommand(comando, m_dbConnection);
            var reader  = command.ExecuteReader();

            var tema = new Tema();

            while (reader.Read())
            {
                tema = Tema.Mapper(reader);
            }

            return(tema);
        }