Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class User
- {
- public Guid Id { get; set; }
- public DateTime CreatedAtUtc { get; set; }
- public string Username { get; set; }
- public string Country { get; set; }
- }
- var spaniards = connection.Query<User>(
- "select * from Users where Country=@Country OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY",
- new { Country = "Spain" }).ToList();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement