C# Класс ElmcityUtils.TableStorage

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
no_continuation string
query_template_pk_rk string

Открытые методы

Метод Описание
AzureTableAsXmlToListDictObj ( string xmltext ) : object>>.List
CompletedIfCreated ( TableStorageHttpResponse response, Object o ) : bool
CompletedIfNotFound ( TableStorageHttpResponse response, Object o ) : bool
CountTables ( ) : TableStorageIntResponse
CreateTable ( string tablename ) : TableStorageHttpResponse
DeleteEntity ( string tablename, string partkey, string rowkey ) : TableStorageListDictResponse
DeleteTable ( string tablename ) : TableStorageHttpResponse
DictObjToTableStore ( System.Operation operation, object>.Dictionary dict, string table, string partkey, string rowkey ) : TableStorageListDictResponse
DoEntity ( string inpath, object>.Dictionary entity, string id, string method, bool force_unconditional ) : TableStorageListDictResponse
DoTableStoreRequest ( string request_path, string query_string, string method, Hashtable headers, byte data ) : ElmcityUtils.HttpResponse
ExistsEntity ( string tablename, string query ) : bool
ExistsEntity ( string tablename, string partition_key, string row_key ) : bool
ExistsTable ( string tablename ) : TableStorageBoolResponse
InsertEntity ( string tablename, object>.Dictionary entity ) : TableStorageListDictResponse
ListTables ( ) : TableStorageListDictResponse
MakeAppContent ( object>.Dictionary entity ) : string
MakeDefaultTableStorage ( ) : TableStorage
MakeSafeBlobnameFromUrl ( string url ) : string
MakeSafeRowkey ( string key ) : string
MakeSafeRowkeyFromUrl ( string url ) : string
MakeSecureTableStorage ( ) : TableStorage
MaybeCreateTable ( string tablename ) : TableStorageHttpResponse
MaybeDeleteEntity ( string tablename, string partkey, string rowkey ) : TableStorageListDictResponse
MergeEntity ( string tablename, string partkey, string rowkey, object>.Dictionary entity ) : TableStorageListDictResponse
PrepEntityPathAndId ( string tablename, string partkey, string rowkey, string &inpath, string &id ) : void
QueryAllEntitiesAsListDict ( string table, string query, int max ) : TableStorageListDictResponse
QueryAllEntitiesAsODataFeed ( string table, string query ) : string
QueryEntities ( string tablename, string query ) : TableStorageListDictResponse
QueryEntities ( string tablename, string query, TableStorage ts ) : TableStorageListDictResponse
QueryEntitiesAsFeed ( string tablename, string query ) : string
QueryEntitiesAsHtml ( string tablename, string query, List attrs ) : string
QueryForSingleEntityAsDictObj ( TableStorage ts, string table, string q ) : object>.Dictionary
QueryForSingleEntityAsDictStr ( TableStorage ts, string table, string q ) : string>.Dictionary
TableStorage ( string azure_storage_name, string azure_table_host, string azure_b64_secret, string scheme ) : System
UpdateDictToTableStore ( object>.Dictionary dict, string table, string partkey, string rowkey ) : TableStorageListDictResponse
UpdateEntity ( string tablename, string partkey, string rowkey, object>.Dictionary entity ) : TableStorageListDictResponse
UpmergeDictToTableStore ( object>.Dictionary dict, string table, string partkey, string rowkey ) : TableStorageListDictResponse
WriteLogMessage ( string type, string message, string data ) : TableStorageHttpResponse
WriteLogMessage ( string type, string message, string data, string table ) : TableStorageHttpResponse
WritePriorityLogMessage ( string type, string message, string data ) : TableStorageHttpResponse

Приватные методы

Метод Описание
GetTsDicts ( ElmcityUtils.HttpResponse http_response ) : object>>.List
MakeAppPayload ( string content, string id ) : byte[]
QueryAll ( string table, string query ) : IEnumerable

Описание методов

AzureTableAsXmlToListDictObj() публичный статический Метод

public static AzureTableAsXmlToListDictObj ( string xmltext ) : object>>.List
xmltext string
Результат object>>.List

CompletedIfCreated() публичный статический Метод

public static CompletedIfCreated ( TableStorageHttpResponse response, Object o ) : bool
response TableStorageHttpResponse
o Object
Результат bool

CompletedIfNotFound() публичный статический Метод

public static CompletedIfNotFound ( TableStorageHttpResponse response, Object o ) : bool
response TableStorageHttpResponse
o Object
Результат bool

CountTables() публичный Метод

public CountTables ( ) : TableStorageIntResponse
Результат TableStorageIntResponse

CreateTable() публичный Метод

public CreateTable ( string tablename ) : TableStorageHttpResponse
tablename string
Результат TableStorageHttpResponse

DeleteEntity() публичный Метод

public DeleteEntity ( string tablename, string partkey, string rowkey ) : TableStorageListDictResponse
tablename string
partkey string
rowkey string
Результат TableStorageListDictResponse

DeleteTable() публичный Метод

public DeleteTable ( string tablename ) : TableStorageHttpResponse
tablename string
Результат TableStorageHttpResponse

DictObjToTableStore() публичный статический Метод

public static DictObjToTableStore ( System.Operation operation, object>.Dictionary dict, string table, string partkey, string rowkey ) : TableStorageListDictResponse
operation System.Operation
dict object>.Dictionary
table string
partkey string
rowkey string
Результат TableStorageListDictResponse

DoEntity() публичный Метод

public DoEntity ( string inpath, object>.Dictionary entity, string id, string method, bool force_unconditional ) : TableStorageListDictResponse
inpath string
entity object>.Dictionary
id string
method string
force_unconditional bool
Результат TableStorageListDictResponse

DoTableStoreRequest() публичный Метод

public DoTableStoreRequest ( string request_path, string query_string, string method, Hashtable headers, byte data ) : ElmcityUtils.HttpResponse
request_path string
query_string string
method string
headers System.Collections.Hashtable
data byte
Результат ElmcityUtils.HttpResponse

ExistsEntity() публичный Метод

public ExistsEntity ( string tablename, string query ) : bool
tablename string
query string
Результат bool

ExistsEntity() публичный Метод

public ExistsEntity ( string tablename, string partition_key, string row_key ) : bool
tablename string
partition_key string
row_key string
Результат bool

ExistsTable() публичный Метод

public ExistsTable ( string tablename ) : TableStorageBoolResponse
tablename string
Результат TableStorageBoolResponse

InsertEntity() публичный Метод

public InsertEntity ( string tablename, object>.Dictionary entity ) : TableStorageListDictResponse
tablename string
entity object>.Dictionary
Результат TableStorageListDictResponse

ListTables() публичный Метод

public ListTables ( ) : TableStorageListDictResponse
Результат TableStorageListDictResponse

MakeAppContent() публичный статический Метод

public static MakeAppContent ( object>.Dictionary entity ) : string
entity object>.Dictionary
Результат string

MakeDefaultTableStorage() публичный статический Метод

public static MakeDefaultTableStorage ( ) : TableStorage
Результат TableStorage

MakeSafeBlobnameFromUrl() публичный статический Метод

public static MakeSafeBlobnameFromUrl ( string url ) : string
url string
Результат string

MakeSafeRowkey() публичный статический Метод

public static MakeSafeRowkey ( string key ) : string
key string
Результат string

MakeSafeRowkeyFromUrl() публичный статический Метод

public static MakeSafeRowkeyFromUrl ( string url ) : string
url string
Результат string

MakeSecureTableStorage() публичный статический Метод

public static MakeSecureTableStorage ( ) : TableStorage
Результат TableStorage

MaybeCreateTable() публичный Метод

public MaybeCreateTable ( string tablename ) : TableStorageHttpResponse
tablename string
Результат TableStorageHttpResponse

MaybeDeleteEntity() публичный Метод

public MaybeDeleteEntity ( string tablename, string partkey, string rowkey ) : TableStorageListDictResponse
tablename string
partkey string
rowkey string
Результат TableStorageListDictResponse

MergeEntity() публичный Метод

public MergeEntity ( string tablename, string partkey, string rowkey, object>.Dictionary entity ) : TableStorageListDictResponse
tablename string
partkey string
rowkey string
entity object>.Dictionary
Результат TableStorageListDictResponse

PrepEntityPathAndId() публичный Метод

public PrepEntityPathAndId ( string tablename, string partkey, string rowkey, string &inpath, string &id ) : void
tablename string
partkey string
rowkey string
inpath string
id string
Результат void

QueryAllEntitiesAsListDict() публичный Метод

public QueryAllEntitiesAsListDict ( string table, string query, int max ) : TableStorageListDictResponse
table string
query string
max int
Результат TableStorageListDictResponse

QueryAllEntitiesAsODataFeed() публичный Метод

public QueryAllEntitiesAsODataFeed ( string table, string query ) : string
table string
query string
Результат string

QueryEntities() публичный Метод

public QueryEntities ( string tablename, string query ) : TableStorageListDictResponse
tablename string
query string
Результат TableStorageListDictResponse

QueryEntities() публичный статический Метод

public static QueryEntities ( string tablename, string query, TableStorage ts ) : TableStorageListDictResponse
tablename string
query string
ts TableStorage
Результат TableStorageListDictResponse

QueryEntitiesAsFeed() публичный Метод

public QueryEntitiesAsFeed ( string tablename, string query ) : string
tablename string
query string
Результат string

QueryEntitiesAsHtml() публичный Метод

public QueryEntitiesAsHtml ( string tablename, string query, List attrs ) : string
tablename string
query string
attrs List
Результат string

QueryForSingleEntityAsDictObj() публичный статический Метод

public static QueryForSingleEntityAsDictObj ( TableStorage ts, string table, string q ) : object>.Dictionary
ts TableStorage
table string
q string
Результат object>.Dictionary

QueryForSingleEntityAsDictStr() публичный статический Метод

public static QueryForSingleEntityAsDictStr ( TableStorage ts, string table, string q ) : string>.Dictionary
ts TableStorage
table string
q string
Результат string>.Dictionary

TableStorage() публичный Метод

public TableStorage ( string azure_storage_name, string azure_table_host, string azure_b64_secret, string scheme ) : System
azure_storage_name string
azure_table_host string
azure_b64_secret string
scheme string
Результат System

UpdateDictToTableStore() публичный статический Метод

public static UpdateDictToTableStore ( object>.Dictionary dict, string table, string partkey, string rowkey ) : TableStorageListDictResponse
dict object>.Dictionary
table string
partkey string
rowkey string
Результат TableStorageListDictResponse

UpdateEntity() публичный Метод

public UpdateEntity ( string tablename, string partkey, string rowkey, object>.Dictionary entity ) : TableStorageListDictResponse
tablename string
partkey string
rowkey string
entity object>.Dictionary
Результат TableStorageListDictResponse

UpmergeDictToTableStore() публичный статический Метод

public static UpmergeDictToTableStore ( object>.Dictionary dict, string table, string partkey, string rowkey ) : TableStorageListDictResponse
dict object>.Dictionary
table string
partkey string
rowkey string
Результат TableStorageListDictResponse

WriteLogMessage() публичный Метод

public WriteLogMessage ( string type, string message, string data ) : TableStorageHttpResponse
type string
message string
data string
Результат TableStorageHttpResponse

WriteLogMessage() публичный Метод

public WriteLogMessage ( string type, string message, string data, string table ) : TableStorageHttpResponse
type string
message string
data string
table string
Результат TableStorageHttpResponse

WritePriorityLogMessage() публичный Метод

public WritePriorityLogMessage ( string type, string message, string data ) : TableStorageHttpResponse
type string
message string
data string
Результат TableStorageHttpResponse

Описание свойств

no_continuation публичное свойство

public string no_continuation
Результат string

query_template_pk_rk публичное статическое свойство

public static string query_template_pk_rk
Результат string