Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/orleanscontrib/orleans.storageproviders.simplesqlserverstorage
Ultra low friction Orleans Storage Provider using SQLServer
https://github.com/orleanscontrib/orleans.storageproviders.simplesqlserverstorage
entity-framework orleans orleans-storage-provider sql-server
Last synced: 26 days ago
JSON representation
Ultra low friction Orleans Storage Provider using SQLServer
- Host: GitHub
- URL: https://github.com/orleanscontrib/orleans.storageproviders.simplesqlserverstorage
- Owner: OrleansContrib
- License: mit
- Created: 2016-02-11T02:07:28.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-25T03:24:07.000Z (almost 7 years ago)
- Last Synced: 2024-11-08T13:43:37.864Z (about 2 months ago)
- Topics: entity-framework, orleans, orleans-storage-provider, sql-server
- Language: C#
- Homepage:
- Size: 405 KB
- Stars: 13
- Watchers: 5
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Orleans.StorageProviders.SimpleSQLServerStorage
[![Build status](https://ci.appveyor.com/api/projects/status/2nhdpoljh1k470le?svg=true)](https://ci.appveyor.com/project/OrleansContrib/orleans-storageproviders-simplesqlserverstorage)
[![NuGet](https://img.shields.io/nuget/v/Orleans.StorageProviders.SimpleSQLServerStorage.svg?style=flat)](https://www.nuget.org/packages/Orleans.StorageProviders.SimpleSQLServerStorage)
A KeyValue SQLServer implementation of the Orleans Storage Provider model. Uses an EF code-first table to store grain keys with binary and/or json serialized data
## Usage
```ps
Install-Package Orleans.StorageProviders.SimpleSQLServerStorage
```Decorate your grain with the StorageProvider attribute e.g.
```cs
[StorageProvider(ProviderName = "PubSubStore")]
```in your OrleansConfiguration.xml configure the provider like this:
```xml
```## Setup
If using SQLServer proper, create an empty database and make sure the connecting user has the following permissions
```sql
[db_datareader]
[db_datawriter]
[db_ddladmin]
```## Configuration
The following attributes can be used on the `` tag to configure the provider:
* __UseJsonFormat="true/false/both"__ (optional) Defaults to `false`, if set to `false` the Orleans binary serializer is used. If set to `true` json data is serialized. if set to `both` then both json and binary data is produced and persisted, but the binary data is used for deserialization(meant for debugging purposes).
* __ConnectionString="..."__ (required) the connection string to your SQLServer database (i.e. `any standard SQL Server connection string`)