/// <summary>
 /// 获取单条数据
 /// </summary>
 /// <returns></returns>
 public V_tm_pm_project Get(Expression<Func<tm_pm_project, bool>> predicate = null)
 {
     using (tm_pm_projectDAL dal = new tm_pm_projectDAL())
     {
         tm_pm_project entity = dal.Get(predicate);
         return EntityToModel(entity);
     }
 }
        /// <summary>
        /// 获取分页数据
        /// </summary>
        /// <param name="page"></param>
        /// <returns></returns>
        public IEnumerable<V_tm_pm_project> GetList(PageInfo page)
        {
            using (tm_pm_projectDAL dal = new tm_pm_projectDAL())
            {
                var list = dal.Get();

                return list.Paging(ref page).Select(EntityToModel).ToList();
            }
        }
 /// <summary>
 /// 获取列表
 /// </summary>
 /// <returns></returns>
 public IEnumerable<V_tm_pm_project> Get()
 {
     using (tm_pm_projectDAL dal = new tm_pm_projectDAL())
     {
         List<tm_pm_project> entitys = dal.Get().ToList();
         List<V_tm_pm_project> list = new List<V_tm_pm_project>();
         foreach (tm_pm_project item in entitys)
         {
             list.Add(EntityToModel(item));
         }
         return list;
     }
 }