Hello!
What is the SQL language keyword for the LINQ-to-SQL FirstOrDefault
or SingleOrDefault
?
Is it TOP(1)
?
EXAMPLE:
SELECT TOP(1) @ItemCode = ItemCode FROM VendorItem WHERE VendorId = @VendorId
There can't be more than 1 results anyway since there is a Unique Key constranint, do I have to spell out the TOP(1) or whatever it is?
Note: I don't need LINQ answers, my question is how to write the sql script.