Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.67 KB | None | 0 0
  1. //класс модели
  2. public class paket
  3. {
  4.         public int id { get; set; }
  5.         public int paket { get; set; }
  6.         public DateTime dataUpack { get; set; }
  7.         public Nullable<int> smena { get; set; }
  8.         public Nullable<double> mBrutto { get; set; }
  9.         public Nullable<double> mNetto { get; set; }
  10.         public bool exported { get; set; }
  11. }
  12.  
  13. //в другом месте кода
  14. List<paket> pkList = GetPaket();  //получаем список пакетов
  15. List<int> filterList = GetIdPaket(); //получаем список id пакетов которые надо выбрать
  16. var query = pkList.Where(w=>filterList.Contains(w.Id))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement