Advertisement
Guest User

Untitled

a guest
Jul 31st, 2015
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public class User
  2. {
  3. public Guid Id { get; set; }
  4. public DateTime CreatedAtUtc { get; set; }
  5. public string Username { get; set; }
  6. public string Country { get; set; }
  7. }
  8.  
  9. var spaniards = connection.Query<User>(
  10. "select * from Users where Country=@Country OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY",
  11. new { Country = "Spain" }).ToList();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement