https://github.com/brandonhenricks/hci.storagequerybuilder
WindowsAzure Query Builder for C#
https://github.com/brandonhenricks/hci.storagequerybuilder
azure-storage azure-table-storage csharp netstandard query
Last synced: 9 months ago
JSON representation
WindowsAzure Query Builder for C#
- Host: GitHub
- URL: https://github.com/brandonhenricks/hci.storagequerybuilder
- Owner: brandonhenricks
- License: apache-2.0
- Created: 2019-06-27T04:18:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-26T15:24:48.000Z (over 6 years ago)
- Last Synced: 2025-05-16T00:14:24.179Z (about 1 year ago)
- Topics: azure-storage, azure-table-storage, csharp, netstandard, query
- Language: C#
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HCI.StorageQueryBuilder
StorageQueryBuilder is a .net standard library for quickly building an Azure Storage TableQuery.

## Installation
Use the package manager [nuget](https://nuget.org) to install StorageQueryBuilder.
```csharp
Install-Package HCI.StorageQueryBuilder
```
## Usage
```csharp
using HCI.StorageQueryBuilder;
// Create a TableQuery with no filters and returning only the PartitionKey
var builder = new QueryBuilder()
.Select(new List() { "PartitionKey" })
.Build()
.ToTableQuery();
```
```csharp
using HCI.StorageQueryBuilder;
// Create a TableQuery with a filter on PartitionKey and returning only the PartitionKey data.
var builder = new QueryBuilder()
.AddFilter("PartitionKey", "test")
.AddFilter("RowKey", "000-000-000")
.Select(new List() { "PartitionKey" });
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.