Mapping entity in Dapper
问题 I've just started working with Dapper and I don't seem to find something very simple like mapping an entity to a table in my database: I have a stored procedure: CREATE PROCEDURE [dbo].GetUserById (@UserId int) AS begin SELECT UserId,LastName,FirstName,EmailAddress FROM users WHERE UserID = @UserId end go Then an entity: public class User { public int Id { get; set; } public string LastName { get; set; } public string FirstName { get; set; } public string Email { get; set; } } And a dapper