Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

SharpRepository

> 编程语言
Open source

C# Generic Repository for use with Entity Framework, RavenDB and more with built-in caching options.

656 stars0 likes0 views
WebsiteGitHub

About

C# Generic Repository for use with Entity Framework, RavenDB and more with built-in caching options.

What is SharpRepository?

SharpRepository is a generic repository written in C# which includes support for various relational, document and object databases including Entity Framework, RavenDB, MongoDb and Db4o. SharpRepository includes Xml and InMemory repository implementations as well. SharpRepository offers built-in caching options for AppFabric, Memcached and standard System.Runtime.Caching. SharpRepository also supports Specifications, FetchStrategies, Batches and Traits.

How do I get started?

Check out the getting started guide. When you're done there, review the SharpRepository.Samples, SharpRepository.Samples.MvcCore, SharpRepository.Samples.MVC5, SharpRepository.Tests.Integration and SharpRepository.Tests project for additional sample usage and implementation details.

Compatibility Issues

  • All packages support .NET Framework 4.6 and .NET Standard 2.0. A good part of them supports .NET Standard 1.3
  • CouchDB Repository is not compatible with CouchDB 2.0.0 (removed temporary views support)

Running tests

Integration tests uses all implementations. In order to avoid failing tests and long timeouts you have to install:

  • CouchDB 1.x (not 2.x)
  • SQL Server Compact
  • MongoDB

We notice timeouts and long test discovery in VS2017 and timeouts in "dotnet test". The best way is use nunit3 console you can get console here https://github.com/nunit/nunit-console/releases and add installation folder in your path After that from your project folder you can run all tests with:

nunit3-console.exe ".\SharpRepository.Samples\bin\Debug\net461\SharpRepository.Samples.dll" ".\SharpRepository.Tests\bin\Debug\net461\SharpRepository.Tests.dll" ".\SharpRepository.Tests.Integration\bin\Debug\net461\SharpRepository.Tests.Integration.dll"

Have Questions?

  • https://github.com/SharpRepository/SharpRepository/issues
  • mail to [email protected]
  • https://groups.google.com/d/forum/sharprepository
  • open a question on stackoverflow.com with sharp-repository tag https://stackoverflow.com/questions/tagged/sharp-repository

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言