Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class mapRequeRollosGet
- {
- public string codi { get; set; }
- public string clie { get; set; }
- public string desc { get; set; }
- public string uni { get; set; }
- public double disp { get; set; }
- }
- public List<mapRequeRollosGet> getRolloRequeCara(string rol)
- {
- var lista = new List<mapRequeRollosGet>();
- using(var ctx=new ModelContext())
- {
- lista = ctx.Casillers.Where(x => x.rollo == rol)
- .Select(m => new mapRequeRollosGet
- {
- codi=m.cod_parte,
- disp=m.cantidad
- }).ToList();
- }
- return lista;
- }
Add Comment
Please, Sign In to add comment