ElmcityUtils.TableStorage.QueryEntities C# (CSharp) Method

QueryEntities() public method

public QueryEntities ( string tablename, string query ) : TableStorageListDictResponse
tablename string
query string
return TableStorageListDictResponse
        public TableStorageListDictResponse QueryEntities(string tablename, string query)
        {
            var http_response = DoTableStoreRequest(tablename, query_string: query, method: "GET", headers: new Hashtable(), data: null);
            if (http_response.status == HttpStatusCode.ServiceUnavailable)
                throw new Exception("TableServiceUnavailable");
            else
            {
                var response = GetTsDicts(http_response);
                return new TableStorageListDictResponse(http_response, GetTsDicts(http_response));
            }
        }

Same methods

TableStorage::QueryEntities ( string tablename, string query, TableStorage ts ) : TableStorageListDictResponse

Usage Example

Beispiel #1
0
        public void QueryEntitiesIsSuccessful()
        {
            if (ts.ExistsEntity(test_table, test_query) == false)
            {
                CreateEntityIsSuccessful();
            }
            var ts_response = ts.QueryEntities(test_table, test_query);
            var dicts       = ts_response.list_dict_obj;

            AssertEntity(dicts);
        }
All Usage Examples Of ElmcityUtils.TableStorage::QueryEntities