This page lists key-value storage providers available in Storage.Net
CSV files implementation maps a local directory to IKeyValueStorage and data will be stored in CSV files in that directory.
For each table a new subfolder will be created called tableName.partition and inside the folder you will have files for each partition key named partitionName.partition.csv.
To construct, use:
IKeyValueStorage storage = StorageFactory.KeyValue.CsvFiles(rootDirectory);To create from connection string:
IKeyValueStorage storage = StorageFactory.KeyValue.FromConnectionString("disk://path=rootDirectoryPath");In order to use Microsoft Azure Table storage you need to reference package first. The provider wraps around the standard Microsoft Storage SDK.
To construct, use:
IKeyValueStorage storage = StorageFactory.KeyValue.AzureTableStorage("account_name", "account_key");Create using connection string:
IKeyValueStorage storage = StorageFactory.KeyValue.FromConnectionString("azure.tables://account=account_name;key=storage_key");Either use the factory method:
IKeyValueStorage storage = StorageFactory.KeyValue.AzureTableDevelopmentStorage();or use the special connection string:
IKeyValueStorage storage = StorageFactory.KeyValue.FromConnectionString("azure.tables://development=true");