Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
        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);
            }
        }