Guest User

Untitled

a guest
Feb 15th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. public class mapRequeRollosGet
  2. {
  3. public string codi { get; set; }
  4. public string clie { get; set; }
  5. public string desc { get; set; }
  6. public string uni { get; set; }
  7. public double disp { get; set; }
  8. }
  9.  
  10. public List<mapRequeRollosGet> getRolloRequeCara(string rol)
  11. {
  12. var lista = new List<mapRequeRollosGet>();
  13.  
  14. using(var ctx=new ModelContext())
  15. {
  16. lista = ctx.Casillers.Where(x => x.rollo == rol)
  17. .Select(m => new mapRequeRollosGet
  18. {
  19. codi=m.cod_parte,
  20. disp=m.cantidad
  21.  
  22. }).ToList();
  23.  
  24. }
  25.  
  26. return lista;
  27. }
Add Comment
Please, Sign In to add comment