blob: 7b3a3d5135f1e871b7c78a46cdfc77ea9e1c464e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.Web.Storage
{
public class TableStorageManager
{
private CloudTableClient _client;
public TableStorageManager()
{
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(WebConfig.STORAGE_ACCOUNT);
_client = storageAccount.CreateCloudTableClient();
}
public CloudTable GetTable(String name)
{
return _client.GetTableReference(name);
}
}
}
|