-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Implement remaining table entity operations #11715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement remaining table entity operations #11715
Conversation
…-up-client-methods
| const string originalValue = "This is the original"; | ||
| const string updatedValue = "This is new and improved!"; | ||
| bool doCleanup = false; | ||
| TableServiceClient service = CreateTableServiceClient(); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use ETag type
There was a problem hiding this comment.
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."); |
There was a problem hiding this comment.
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
…-up-client-methods
The focus of these changes is to implement the remaining basic table entity operations and to support optimistic concurrency.