protected virtual List <MateriaModel> LlenarModelos(IDataReader reader) { List <MateriaModel> result = new List <MateriaModel>(); while (reader.Read()) { MateriaModel nc = new MateriaModel(); nc.Fill(reader); result.Add(nc); } return(result); }
protected virtual List <MateriaModel> LlenarMateriasDelCatalogo(IDataReader reader, long catalogo_id) { List <MateriaModel> result = new List <MateriaModel>(); while (reader.Read()) { MateriaModel nc = new MateriaModel(); nc.Fill(reader); result.Add(nc); } return(result); }