/// <summary> /// 获取单条数据 /// </summary> /// <returns></returns> public V_ctms_pm_itemconfirm Get(Expression <Func <ctms_pm_itemconfirm, bool> > predicate = null) { using (ctms_pm_itemconfirmDAL dal = new ctms_pm_itemconfirmDAL()){ ctms_pm_itemconfirm entity = dal.Get(predicate); return(EntityToModel(entity)); } }
/// <summary> /// 获取分页数据 /// </summary> /// <param name="page"></param> /// <returns></returns> public IEnumerable <V_ctms_pm_itemconfirm> GetList(PageInfo page) { using (ctms_pm_itemconfirmDAL dal = new ctms_pm_itemconfirmDAL()){ var list = dal.Get(); return(list.Paging(ref page).Select(EntityToModel).ToList()); } }
/// <summary> /// 获取列表 /// </summary> /// <returns></returns> public IEnumerable <V_ctms_pm_itemconfirm> Get() { using (ctms_pm_itemconfirmDAL dal = new ctms_pm_itemconfirmDAL()){ List <ctms_pm_itemconfirm> entitys = dal.Get().ToList(); List <V_ctms_pm_itemconfirm> list = new List <V_ctms_pm_itemconfirm>(); foreach (ctms_pm_itemconfirm item in entitys) { list.Add(EntityToModel(item)); } return(list); } }