I'm working on a project right now where we have to implement all communications to the database via stored procedures. We are using Linq-to-SQL, so all the database entities are in place. My question is how you could write a stored procedure that returns an entity, if this is possible.
Example, we validate a user when he's logging in with username and pass, and then do a check, but how should I write to get the stored procedure to return an Employee entity?
CREATE PROCEDURE GetLogin (
@UserName NVARCHAR(50),
@Password NVARCHAR(50))