daily pastebin goal
45%
SHARE
TWEET

Untitled

a guest Feb 15th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top