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

(where in) no Linq

$
0
0

Se você estiver fazendo um LINQ to Entity (EF) não é possível usar o Contains

var varPost = (from p in EF.Post
           where p.TipoPost == 1 ||
                p.TipoPost == 2)
           select p);

Sds


Marcos Aguiar Jr - Brazil blog: https://marquinhosnet.wordpress.com/

Viewing all articles
Browse latest Browse all 17

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>