Skip to content

Conversation

@christothes
Copy link
Member

The focus of these changes is to implement the remaining basic table entity operations and to support optimistic concurrency.

@christothes christothes self-assigned this Apr 30, 2020
@christothes christothes requested a review from pakrym April 30, 2020 21:47
@christothes christothes marked this pull request as draft April 30, 2020 21:54
@christothes christothes marked this pull request as ready for review April 30, 2020 22:06
const string originalValue = "This is the original";
const string updatedValue = "This is new and improved!";
bool doCleanup = false;
TableServiceClient service = CreateTableServiceClient();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If all tests would need a table we might think about having a SetUp and TearDown methods that would manage that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I considered that for the whole class, but doing it per test might be better, as you suggested.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to punt this to a future PR

/// <summary> The row key continuation token for an Entity request. </summary>
public string NextRowKey { get; set; }
/// <summary> The If-Match header value for an Entity request. </summary>
public string ETag { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use ETag type

Copy link
Member Author

@christothes christothes May 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tables uses weak etags, which the ETag type doesn't allow:

throw new NotSupportedException("Weak ETags are not supported.");

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Time to implement #9501 :)

I'm fine if we do it as a followup

@christothes christothes merged commit 57e445e into Azure:master May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants