Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. public class Typ
  2. {
  3. public int TypId { get; set; }
  4.  
  5. public string Score { get; set; }
  6.  
  7. public string UserName { get; set; }
  8. }
  9.  
  10. List<int> idlist = db.Typ.Select(c => c.TypId).Distinct().ToList();
  11.  
  12. foreach (var item in idlist)
  13. {
  14. MyFunction(item);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement