|
using System.Web.Http;
using AspWithAzureExtensions.Models;
using Microsoft.WindowsAzure.Storage.Table;
namespace AspWithAzureExtensions.App_Start
{
public static class TablesInitializer
{
public static void Initialize(HttpConfiguration config)
{
var tableClient = (CloudTableClient) config.DependencyResolver.GetService(typeof (CloudTableClient));
// Initialize required tables
tableClient.GetTableReference(typeof (Issue).Name).CreateIfNotExists();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Software engineer with an application development experience.
MCSD: Web Applications
MCSD: Windows Store Apps Using C#