Skip to content

Commit

Permalink
Merge pull request #414 from ultimaweapon/conditional-consistency
Browse files Browse the repository at this point in the history
Support setting consistency level for CqlConditionalCommand
  • Loading branch information
jorgebay committed Jul 3, 2018
2 parents 46e8da8 + c134c90 commit a89f151
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Cassandra/Data/Linq/CqlConditionalCommand.cs
Expand Up @@ -52,6 +52,18 @@ public new AppliedInfo<TEntity> Execute()
return TaskHelper.WaitToComplete(task, config.ClientOptions.QueryAbortTimeout);
}

public new CqlConditionalCommand<TEntity> SetConsistencyLevel(ConsistencyLevel? consistencyLevel)
{
base.SetConsistencyLevel(consistencyLevel);
return this;
}

public new CqlConditionalCommand<TEntity> SetSerialConsistencyLevel(ConsistencyLevel consistencyLevel)
{
base.SetSerialConsistencyLevel(consistencyLevel);
return this;
}

/// <summary>
/// Sets the time for data in a column to expire (TTL) for INSERT and UPDATE commands.
/// </summary>
Expand Down

0 comments on commit a89f151

Please sign in to comment.