Welcome to Azure Simple Storage Protocol.
A library that ease your way to interact with Azure Storage. Currently support Table storage only. Where you don`t need to worry about data type, schema (very close to JSON).
NuGet
You can find NuGet package from here
Sample Code
- InsertOrUpdate
var proto = new TableProtocol(StorageAccountName, StorageAccountKey);
var entity = new TableEntityModel
{
PartitionKey = partKey,
RowKey = rowkey
};
entity["val1"] = 1;
entity["val12"] = 2.0;
entity["val13"] = DateTime.Now;
await proto.InsertOrUpdate(TestTable, entity);
- List
var proto = new TableProtocol(StorageAccountName, StorageAccountKey);
TableEntityModelCollection results = await proto.List(tableName, partKey, 10);
results = await proto.List(tableName, partKey, 10, results.ContinuationToken);
- Get
var proto = new TableProtocol(StorageAccountName, StorageAccountKey);
TableEntityModel result = await proto.Get(tableName, partKey, rowkey);