Visual studio feeds

All Visual Studio blogs in one place


Enter your email address:

Delivered by FeedBurner

Increase your website traffic with



Anti-spam: How many eyes has a typical person?

Follow us on FB


Extension Methods for the August 2011 Windows Azure Storage Features

AddThis Social Bookmark Button
Some great new features were added to Windows Azure storage and announced at the BUILD conference last week. I’ve added extension methods to make it easier to use this new functionality to my WazStorageExtensions project (on GitHub and NuGet). The new methods include (from the README): Updating queue message visibility timeouts and content (storage team blog post) Upsert and server-side query projection (storage team blog post) A convenience method to initialize storage by creating containers, tables, and queues in a single call The GitHub project has examples of the new
functionality, but here’s a quick teaser for the storage initialization convenience method, upsert, and server-side query projection (new stuff highlighted): static void Main(string[] args) { var account = CloudStorageAccount.Parse(args[0]); account.Ensure(tables: new[] { "temptable" }); var ctx = account.CreateCloudTableClient().GetDataServiceContext2011(); var entity = new MyEntity(args[1], args[2]); ctx.AttachTo("temptable", entity, null); ctx.UpdateObject(entity); // Does "InsertOrReplace." Drop the SaveChangesOptions argument to get "InsertOrMerge." ctx.SaveChangesWithRetries(SaveChangesOptions.ReplaceOnUpdate); // Server-side projection! "Created" property is not returned. Console.WriteLine( ...(Read whole news on source site)

Home : Blog List : - cloud development blog : Extension Methods for the August 2011 Windows Azure Storage Features