Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Check if any data equals string (true/false) problem.

$
0
0

 bool exceptionExist = _context.OrderArticle.Any(x => x.State == "Exception");

            if (!exceptionExist)

            {

               //Do something

            }

Not working :'(


Viewing all articles
Browse latest Browse all 1698

Trending Articles



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