Created
August 13, 2019 05:13
-
-
Save gethari/680cd69ef134412b364f031746fbe4dc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List<StageProperty> WithDapper(Guid id) | |
{ | |
List<Property> result; | |
using (var connection = new SqlConnection(ConnectionString)) | |
{ | |
result = connection.QueryAsync<Property>(queryString, new | |
{ | |
Id = id | |
}).Result.ToList(); | |
} | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment