Advertisement
Guest User

Untitled

a guest
May 25th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. {
  2. linqclassDataContext context = new linqclassDataContext();
  3. var q = from p in context.Tables
  4. where p.username == txtUsername.Text
  5. && p.password == txtPassword.Text
  6. select p;
  7.  
  8.  
  9.  
  10. if (q.Any())
  11. {
  12. return true;
  13. }
  14. else
  15. {
  16. return false;
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement