Ejemplo n.º 1
0
 public static Task <PKGroup> UpdateGroup(this IPKConnection conn, GroupId id, GroupPatch patch)
 {
     var(query, pms) = patch.Apply(UpdateQueryBuilder.Update("groups", "id = @id"))
                       .WithConstant("id", id)
                       .Build("returning *");
     return(conn.QueryFirstAsync <PKGroup>(query, pms));
 }
Ejemplo n.º 2
0
 public Task <PKGroup> UpdateGroup(IPKConnection conn, GroupId id, GroupPatch patch)
 {
     _logger.Information("Updated {GroupId}: {@GroupPatch}", id, patch);
     var(query, pms) = patch.Apply(UpdateQueryBuilder.Update("groups", "id = @id"))
                       .WithConstant("id", id)
                       .Build("returning *");
     return(conn.QueryFirstAsync <PKGroup>(query, pms));
 }