azure-table-storage

Rename Azure Storage Table?

。_饼干妹妹 提交于 2019-12-06 18:22:57
问题 Is it not possible to rename an Azure Storage Table? I cannot seem to find anything online (not even cmdlets). There are no options for this in Visual Studio Server Explorer, Cloud Storage Studio or TableXplorer. 回答1: You're correct. It is not possible to rename an Azure Storage Table (or Blob Container or Queue for that matter). Possible solution would be to download all entities from the table and upload them again in another table. Once all entities are uploaded, you can then delete the

Storing decimal data type in Azure Tables

浪尽此生 提交于 2019-12-06 17:30:31
问题 Windows Azure Table Storage does not support the decimal data type. A suggested workaround is to use a custom attribute to serialize the decimal property as string: [EntityDataType(PrimitiveTypeKind.String)] public decimal Quantity { get; set; } How could this EntityDataType custom attribute be implemented so decimal properties can be stored and retrieved from Windows Azure Tables? 回答1: You may override the WriteEntity method in TableEntity and use EntityResolver public class

Windows Azure table access latency Partition keys and row keys selection

六月ゝ 毕业季﹏ 提交于 2019-12-06 12:19:11
问题 We've got a windows azure table storage system going on where we have various entity types that report values during the day so we've got the following partition and row key scenario: There are about 4000 - 5000 entities. There are 6 entity types and the types are roughly evenly distributed. so around 800'ish each. ParitionKey: entityType-Date Row key: entityId Each row records the values for an entity for that particular day. This is currently JSON serialized. The data is quite verbose. We

Alternative to Windows Azure tables out of the cloud

南楼画角 提交于 2019-12-06 10:21:21
I'm developing a .NET app, which needs to run both on Azure and on regular Windows Servers(2003). It needs to store a few GB of data and SQL Azure is too expensive for me, so I'll use Azure tables in the cloud version. Can you recommend a storage solution, which will run on standalone servers and have an API and behavior similar to Azure tables? From what I've seen Server AppFabric does not include Tables. If you think what Windows Azure Table Storage is, it is a Key-Value pair based non-relational databse which is accessible through REST API. Please download this document about Windows Azure

Azure Table Storage: How can I create a dynamic where clause?

痴心易碎 提交于 2019-12-06 08:56:17
Ok, so I am using Azure Table Storage for the first time in a ASP.NET MVC 3 application. I have a table entity that has a user ID as its RowKey. I have a list of user IDs and need to get all of the entities that have one of the User IDs. In traditional SQL it would be a simple OR statement in the where clause that you can dynamically add to: select * from blah where userID = '123' or userID = '456' or userID = '789' but I haven't found the equivalent in the Azure SDK. Is this possible with Azure Table Storage? Thanks, David Alrighty, with a bit more digging I found the answer. You can

Retrieving Chat Bot conversation data in Azure

纵饮孤独 提交于 2019-12-06 08:52:51
问题 A brief background first: The Bot framework stores the conversation data within a storage either Azure tables/Cosmos DB (Azure tables in my case). For each conversation there is an entry made into the Azure table with the timestamp, userid, conversation messages and other details. I am trying to retrieve the conversation details from Azure table storage using custom code in C# as shown below. Microsoft.WindowsAzure.Storage.CloudStorageAccount storageAccount = Microsoft.WindowsAzure.Storage

PartitionKey was not specified in azure table storage

旧巷老猫 提交于 2019-12-06 04:42:16
问题 I am trying to load/import the data into table storage from a csv file via azure storage explorer , but I am getting the following error as An error occurred while opening the file 'D//sample.csv'.the required property 'Partitionkey' was not specified. Kindly clarify the importance of Partitionkey and Rowkey in azure table storage? 回答1: Azure Storage Key has been discussed here: Azure Table Storage Partition Key In order to understand this, you will need to know what Partitions are. Whenever

Copy all Rows to another Table in Azure Table Storage

旧街凉风 提交于 2019-12-06 03:01:28
问题 What is the best way to copy all the rows from one table to another table? I tried below code to get all the rows in a table: TableServiceContext _dataContext; public IEnumerable<T> GetAllEntities() { IQueryable<T> query = null; try { query = _dataContext.CreateQuery<T>(_tableName); } catch (Exception ex) { } return query.ToArray(); } but it doesnt get rows more than around 900. I have few hundreds of thousands of rows. Updated Code: public class TableRepository<T> : IRepository<T> where T :

Strategy for storing application logs in Azure Table Storage

跟風遠走 提交于 2019-12-06 02:29:45
问题 I am to determine a good strategy for storing logging information in Azure Table Storage. I have the following: PartitionKey: The name of the log. RowKey: Inversed DateTime ticks, The only issue here is that partitions could get very large (millions of entities) and the size will increase with time. But that being said, the type of queries being performed will always include the PartitionKey (no scanning) AND a RowKey filter (a minor scan). For example (in a natural language): where

Could not load file or assembly 'Microsoft.Azure.Documents.Client - Azure-Table-Api

落爺英雄遲暮 提交于 2019-12-06 01:38:21
I am trying to use Azure Table Api with dotnet core and I keep getting this exception: Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Azure.Documents.Client, Version=1.20.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified. at Microsoft.Azure.CosmosDB.Table.CloudTableClient..ctor(StorageUri storageUri, StorageCredentials credentials, TableConnectionPolicy connectionPolicy, Nullable`1 desiredConsistencyLevel) at Microsoft.Azure.CosmosDB.Table.CloudStorageAccountExtensions.CreateCloudTableClient