Quantcast
Channel: (where in) no Linq
Viewing all articles
Browse latest Browse all 17

(where in) no Linq

$
0
0

Crie uma lista dos id´s que você quer:

List<int> ids = new List<int>(){1, 2};

from post in ListPost where ids.Contains(post.id_tipo_post) select new {id = post.id_post, tipo = post.id_tipo_post}


Viewing all articles
Browse latest Browse all 17

Trending Articles