Geeks With Blogs

News kaleidoscope 1817, lit. "observer of beautiful forms," coined by its inventor, Sir David Brewster (1781-1868), from Gk. kalos "beautiful" + eidos "shape" (see -oid) + -scope, on model of telescope, etc. Figurative meaning "constantly changing pattern" is first attested 1819 in Lord Byron, whose publisher had sent him one.
Kaleidoscope Everything under the sun, ending in .Net

LinqPad as we all know has been a wonderful tool for running ad-hoc queries. With Azure Table storage in picture LinqPad was no longer in picture and we shifted focus to Cloud Storage Studio only to realize the limited and strange querying capabilities of CSS. With some tweaking to Linqpad we can get the comfortable old shoe of ad-hoc queries with LinqPad in the Azure Table storage.


1. Start LinqPad

2. Right Click in the query window and select “Query Properties”

3. In The Additional References add reference to Microsoft.WindowsAzure.StorageClient, System.Data.Services.Client.dll and the assembly containing the implementation of the DataServiceContext class tied to the Azure table storage.

4. In the additional namespace imports import the same three namespaces mentioned above.

5. Then we need to provide following details.

a. Table storage account name and shared key.

b. DataServiceContext implementing class in your code.

c. A LINQ query.


var storageAccountName = "myStorageAccount";  // Enter valid storage account name

var storageSharedKey = "mysharedKey"; // Enter valid storage account shared key

var uri = new System.Uri("");

var storageAccountInfo = new CloudStorageAccount(new StorageCredentialsAccountKey(storageAccountName, storageSharedKey), false);

var serviceContext = new TweetPollDataServiceContext(storageAccountInfo); // Specify the DataServiceContext implementation

// The query

var query = from row in serviceContext.Table

select row;



Technorati Tags:
Posted on Sunday, March 21, 2010 5:40 PM | Back to top

Comments on this post: Linqpad with Table Storage

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © kaleidoscope | Powered by: