Beispiel #1
0
        public async Task <Entity> GetByIdAsync(Guid id)
        {
            using (var connection = context.CreateConnection())
            {
                var query = await connection.QueryAsync <Entity>(EntityQuery.ById(id));

                return(query.SingleOrDefault());
            }
        }