コード例 #1
0
 /// <summary>
 /// 根据基因ID获取等位基因列表
 /// </summary>
 /// <param name="geneID"></param>
 /// <returns></returns>
 public List <GeneAllele> GetList(string geneID, ref PageInfo pageInfo)
 {
     using (EFGeneAlleleRepository repository = new EFGeneAlleleRepository())
     {
         List <GeneAllele> modelList = new List <GeneAllele>();
         if (!string.IsNullOrEmpty(geneID))
         {
             modelList = repository.FindAll(o => o.GENEID.Equals(geneID) && !o.ISDELETED).Paging(ref pageInfo).Select(EntityToModel).ToList();
         }
         return(modelList);
     }
 }
コード例 #2
0
 /// <summary>
 /// 根据基因ID获取等位基因列表
 /// </summary>
 /// <param name="geneID"></param>
 /// <returns></returns>
 public List <GeneAllele> GetList(string geneID)
 {
     using (EFGeneAlleleRepository repository = new EFGeneAlleleRepository())
     {
         List <GeneAllele> modelList = new List <GeneAllele>();
         if (!string.IsNullOrEmpty(geneID))
         {
             var list = repository.FindAll(o => o.GENEID.Equals(geneID) && !o.ISDELETED).ToList();;
             modelList = (from g in list select EntityToModel(g)).ToList();
         }
         return(modelList);
     }
 }