public IList <Protein> ListProteins() { using (ISession session = ProteomeDb.OpenSession()) { DbOrganism organism = GetEntity(session); List <Protein> proteins = new List <Protein>(); foreach (DbProtein dbProtein in organism.Proteins) { proteins.Add(new Protein(this, dbProtein)); } return(proteins); } }
public IList <Digestion> ListDigestions() { using (ISession session = ProteomeDb.OpenSession()) { DbOrganism organism = GetEntity(session); List <Digestion> digestions = new List <Digestion>(); foreach (DbDigestion dbDigestion in organism.Digestions) { digestions.Add(new Digestion(this, dbDigestion)); } return(digestions); } }