Mukesh Kumar Tiwari

Mukesh Kumar Tiwari

  • NA
  • 980
  • 244.2k

How to check result set empty or null in linq????

Dec 12 2013 1:40 AM
hey frnds ...

i have a query in linq like this.


  var res = from UM in linq.AG_User_Masters
                      where UM.Login_id == txt_loginname.Text
                      select UM;

now  i have to check that res contain any result or not..
but i do not getting this abjectly...

so pls help...

Thanks....




Answers (5)