How to check if a Linq to SQL query returns a row?
The .Any() LINQ statement:
.Any()
results.Any()
Returns false if there are no rows.
You can use results.Any(); ( Queryable.Any method).
results.Any();
Source: https://habr.com/ru/post/1338594/More articles:How to connect C ++ in a wire rename event - c ++Should observers be notified when insertObject: in AtIndex: is called? - objective-cNetwork problem, suggestions - windowsGet sizes and coordinates of text fields in PDF - phpUnable to figure out what causes shift / decrease errors in yacc - bisonMySQL C API - access to rows by column name - chttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1338596/whats-the-options-to-host-a-thrift-service&usg=ALkJrhjzdE9w_OW7LPFaQh2iLN8z-5A1nAWhy should I use OOP to hide information? - oopIntegrate Facebook login (oauth) with existing grails application using spring-security-core plugin - spring-securityCreate / run batch file programmatically - c #All Articles