Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9241779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:26:16+00:00 2026-06-18T08:26:16+00:00

Background I am receiving CSV data files from clients that contain a large amount

  • 0

Background

I am receiving CSV data files from clients that contain a large amount of data that I don’t need and a small amount of data that I do. In the future I may need to access that data and although I’m archiving the original data files I was hoping for something a bit easier to query. I was hoping for a solution that didn’t mean the data files stayed in the same format – i.e. the client may add/remove columns and I don’t want my implementation to bail on missing data or fail to archive additional data.

As I’m building the application in Azure, Azure table storage looked correct to me – I could read the data files and then store whatever key/value pairs I read into the data store.

Upshot

I would like to know how to store a Dictionary<K, V> or Hashtable or some other key/value pairs in Azure.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:26:17+00:00Added an answer on June 18, 2026 at 8:26 am

    By overriding the ReadEntity and WriteEntity methods on classes derived from TableEntity, additional properties can be stored.

    Here’s my naive implementation

    public class TestEntity : TableEntity {
    
        public TestEntity(string a, string b) {
            PartitionKey = a;
            RowKey = b;
            DataItems = new Dictionary<string, string>();
        }
    
        public Dictionary<string, string> DataItems { get; set; }
    
        public override IDictionary<string, EntityProperty> WriteEntity(OperationContext operationContext) {
            var results = base.WriteEntity(operationContext);
            foreach (var item in DataItems) {
                results.Add("D_" + item.Key, new EntityProperty(item.Value));
            }
            return results;
        }
    
        public override void ReadEntity(IDictionary<string, EntityProperty> properties, OperationContext operationContext) {
            base.ReadEntity(properties, operationContext);
    
            DataItems = new Dictionary<string, string>();
    
            foreach (var item in properties) {
                if (item.Key.StartsWith("D_")) {
                    string realKey = item.Key.Substring(2);
                    ItemData[realKey] = item.Value.StringValue;
                }
            }
        }
    }
    

    I’ve noted that Azure table storage can only store a total of 255 key/value pairs – or 252 custom ones once PartitionKey, etc. is taken into account, so this has to be handled somewhere as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class Communicator that works in a background thread receiving data on
Background: We're building an application that allows our customers to supply data in a
We've implemented a background service in our Asp.Net web app that receives messages from
I’m receiving random NullPointerException crash reports from Google that can’t be reproduced. I’m using
I have a simple UILabel setup and was receiving reports from some users that
I need to implement posting some data to a web server in the background.
On Iphone App start I start a background thread to receive some data from
I have a Network Client class that is receiving a large binary block and
Is it possible that BroadcastReceiver in an activity which have gone to background receiving
I have been receiving reports from customers in the field that my app is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.