public async Task UpdateAsync(SqlQueryEntity entity) { await Client.PutAsync(entity, "Self", entity).ConfigureAwait(false); }
public async Task RemoveAsync(SqlQueryEntity entity) { await Client.DeleteAsync(entity, "Self", entity).ConfigureAwait(false); }
/// <summary> /// Remove an existing query. /// </summary> /// <param name="entity">The query to remove.</param> /// <param name="cancellationToken">A <see cref="CancellationToken"/> allowing the operation to be canceled.</param> /// <returns>A task indicating completion.</returns> public async Task RemoveAsync(SqlQueryEntity entity, CancellationToken cancellationToken = default) { await Client.DeleteAsync(entity, "Self", entity, cancellationToken : cancellationToken).ConfigureAwait(false); }
public async Task <SqlQueryEntity> AddAsync(SqlQueryEntity entity) { return(await Client.PostAsync <SqlQueryEntity, SqlQueryEntity>(entity, "Create", entity).ConfigureAwait(false)); }
/// <summary> /// Add a new query. /// </summary> /// <param name="entity">The query to add.</param> /// <param name="cancellationToken">A <see cref="CancellationToken"/> allowing the operation to be canceled.</param> /// <returns>The query, with server-allocated properties such as <see cref="Entity.Id"/> initialized.</returns> public async Task <SqlQueryEntity> AddAsync(SqlQueryEntity entity, CancellationToken cancellationToken = default) { return(await GroupCreateAsync <SqlQueryEntity, SqlQueryEntity>(entity, cancellationToken : cancellationToken).ConfigureAwait(false)); }