Пример #1
0
 public IList <T> NCSGetEntities(ref string Msg, Expression <Func <T, bool> > where = null)
 {
     try
     {
         return(_dal.GetEntities(where));
     }
     catch (Exception ex)
     {
         return(null);
     }
 }
 public IList <ProductsDTO> GetList()
 {
     return(_dal.GetEntities <T_Products>(m => 1 == 1, true).Select(CreateDataMapper.GetMappedSelector <T_Products, ProductsDTO>()).ToList());
 }
Пример #3
0
 public IList <InventoryDTO> GetList()
 {
     return(_dal.GetEntities <T_Inventory>(m => 1 == 1, true).Select(CreateDataMapper.GetMappedSelector <T_Inventory, InventoryDTO>()).ToList());
 }
        public IEnumerable <UserDTO> GetList()
        {
            Mapper.CreateMap <T_User, UserDTO>();

            return(_dal.GetEntities <T_User>(m => 1 == 1, true).Select(CreateDataMapper.GetMappedSelector <T_User, UserDTO>()).ToList());
        }
Пример #5
0
 /// <summary>
 /// 获取Entities(列表)
 /// </summary>
 public IEnumerable <T> GetEntities(Func <T, bool> exp)
 {
     return(dao.GetEntities(exp));
 }
Пример #6
0
 public IList <FruitPicDTO> GetList()
 {
     return(_dal.GetEntities <T_FruitPic>(m => 1 == 1, true).Select(CreateDataMapper.GetMappedSelector <T_FruitPic, FruitPicDTO>()).ToList());
 }
 public IList <SupplierDTO> GetList()
 {
     return(_dal.GetEntities <T_Supplier>(m => 1 == 1, true).Select(CreateDataMapper.GetMappedSelector <T_Supplier, SupplierDTO>()).ToList());
 }
Пример #8
0
 public IList <PlaceDTO> GetList()
 {
     return(_dal.GetEntities <T_Place>(m => 1 == 1, true).Select(CreateDataMapper.GetMappedSelector <T_Place, PlaceDTO>()).ToList());
 }
Пример #9
0
 public IList <StockinDTO> GetList()
 {
     return(_dal.GetEntities <T_Stockin>(m => 1 == 1, true).Select(CreateDataMapper.GetMappedSelector <T_Stockin, StockinDTO>()).ToList());
 }
Пример #10
0
 public IList <UserOrdersDTO> GetList()
 {
     return(_dal.GetEntities <T_UserOrders>(m => 1 == 1, true).Select(CreateDataMapper.GetMappedSelector <T_UserOrders, UserOrdersDTO>()).ToList());
 }