{"id":22615858,"url":"https://github.com/orleanscontrib/orleans.storageproviders.simplesqlserverstorage","last_synced_at":"2025-04-11T12:12:55.437Z","repository":{"id":75070387,"uuid":"51488646","full_name":"OrleansContrib/Orleans.StorageProviders.SimpleSQLServerStorage","owner":"OrleansContrib","description":"Ultra low friction Orleans Storage Provider using SQLServer","archived":false,"fork":false,"pushed_at":"2018-01-25T03:24:07.000Z","size":415,"stargazers_count":13,"open_issues_count":2,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-11T08:13:05.287Z","etag":null,"topics":["entity-framework","orleans","orleans-storage-provider","sql-server"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OrleansContrib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-02-11T02:07:28.000Z","updated_at":"2023-02-20T07:59:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"732003a4-bbce-45da-b2da-2965ec8867fb","html_url":"https://github.com/OrleansContrib/Orleans.StorageProviders.SimpleSQLServerStorage","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OrleansContrib%2FOrleans.StorageProviders.SimpleSQLServerStorage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OrleansContrib%2FOrleans.StorageProviders.SimpleSQLServerStorage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OrleansContrib%2FOrleans.StorageProviders.SimpleSQLServerStorage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OrleansContrib%2FOrleans.StorageProviders.SimpleSQLServerStorage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OrleansContrib","download_url":"https://codeload.github.com/OrleansContrib/Orleans.StorageProviders.SimpleSQLServerStorage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248398668,"owners_count":21097293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["entity-framework","orleans","orleans-storage-provider","sql-server"],"created_at":"2024-12-08T19:09:50.465Z","updated_at":"2025-04-11T12:12:55.405Z","avatar_url":"https://github.com/OrleansContrib.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Orleans.StorageProviders.SimpleSQLServerStorage\n\n[![Build status](https://ci.appveyor.com/api/projects/status/2nhdpoljh1k470le?svg=true)](https://ci.appveyor.com/project/OrleansContrib/orleans-storageproviders-simplesqlserverstorage)\n\n[![NuGet](https://img.shields.io/nuget/v/Orleans.StorageProviders.SimpleSQLServerStorage.svg?style=flat)](https://www.nuget.org/packages/Orleans.StorageProviders.SimpleSQLServerStorage)\n\nA 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\n\n## Usage\n\n```ps\nInstall-Package Orleans.StorageProviders.SimpleSQLServerStorage\n```\n\nDecorate your grain with the StorageProvider attribute e.g.\n\n```cs\n[StorageProvider(ProviderName = \"PubSubStore\")]\n```\n\nin your OrleansConfiguration.xml configure the provider like this:\n\n```xml\n\u003cStorageProviders\u003e\n      \u003cProvider Type=\"Orleans.StorageProviders.SimpleSQLServerStorage.SimpleSQLServerStorage\" Name=\"PubSubStore\"\n                ConnectionString=\"Data Source=(LocalDB)\\v11.0; Integrated Security=True;\"\n                UseJsonFormat=\"false\" /\u003e\n      \n      \u003cProvider Type=\"Orleans.StorageProviders.SimpleSQLServerStorage.SimpleSQLServerStorage\" Name=\"SomeOtherGrainStorage\"\n                ConnectionString=\"Data Source=(LocalDB)\\v11.0; Integrated Security=True;\"\n                UseJsonFormat=\"both\" /\u003e\n    \u003c/StorageProviders\u003e\n```\n\n## Setup\nIf using SQLServer proper, create an empty database and make sure the connecting user has the following permissions\n```sql\n[db_datareader]\n[db_datawriter]\n[db_ddladmin]\n```\n\n\n## Configuration\n\nThe following attributes can be used on the `\u003cProvider/\u003e` tag to configure the provider:\n\n* __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).\n* __ConnectionString=\"...\"__ (required) the connection string to your SQLServer database (i.e. `any standard SQL Server connection string`)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forleanscontrib%2Forleans.storageproviders.simplesqlserverstorage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forleanscontrib%2Forleans.storageproviders.simplesqlserverstorage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forleanscontrib%2Forleans.storageproviders.simplesqlserverstorage/lists"}