Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public List<StageProperty> WithDapper(Guid id)
  2. {
  3. List<Property> result;
  4. using (var connection = new SqlConnection(ConnectionString))
  5. {
  6. result = connection.QueryAsync<Property>(queryString, new
  7. {
  8. Id = id
  9. }).Result.ToList();
  10. }
  11.  
  12. return result;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement