How can I translate this SQL statement to a Linq-to-SQL approach?

Posted by Sergio Tapia on Stack Overflow See other posts from Stack Overflow or by Sergio Tapia
Published on 2010-06-17T15:09:06Z Indexed on 2010/06/17 15:13 UTC
Read the original article Hit count: 263

Filed under:
|
|
|

For example, imagine that I want to see if a user exists in my database:

Select * from Users where inputID = Users.ID

Then if that result brought > 0 items, then the user exists, correct?

How can I do something like this using a pure Linq-to-SQL class?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET