/// <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); } }
/// <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); } }