You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note that TableSet.Add() method returns IEnumerable which is a deferred result.
So to execute insert operation you should enumerate result items like that:
tset.AddAsync(deList); // work, because it's not a deferred
tset.Add(deList).ToList(); // should work
If you have other questions feel free to communicate.
Hi
TableSet.Add(entities) doesn't seems to work properly, even through TableSet.AddAsync(entities) work well.
Example Code I test is below
string connectionString = "UseDevelopmentStorage=true"; // change to your connectionString
string tableName = "testTableName";
CloudStorageAccount account = CloudStorageAccount.Parse(connectionString);
CloudTableClient tableClient = account.CreateCloudTableClient();
tableClient.GetTableReference(tableName).CreateIfNotExists();
TableSet tset = new TableSet(tableClient,tableName);
tset.AddAsync(deList); // work
tset.Add(deList); //doesn't work
If there are some mistakes I made, please let me know.
The text was updated successfully, but these errors were encountered: