Skip to content

A simple repository pattern .NET library with behavior similar to a Read-Only Dictionary (hence: Rod).

License

Notifications You must be signed in to change notification settings

michaelpduda/HotRod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HotRod

License: MIT Nuget

HotRod is an implementation of the repository pattern, where the repository instances behave as ReadOnlyDictionaries (RODs). When a UnitOfWork is opened, they behave like regular Dictionaries so changes can be made and committed.

HotRod currently includes three different implementations:

  1. A MemoryRepository, where the data is stored only in memory and not persisted.
  2. A JsonFileRepository, where the data is persisted to a JSON text file, useful for debugging.
  3. A LiteDbRepository, where the data is persisted to a LiteDb database.

Installation

HotRod implementations are available as Nuget packages:

  • Nuget - HotRod - Contains: MemoryRepository, JsonFileRepository
  • Nuget - HotRod.LiteDb - Contains: LiteDbRepository

Contributing

Additions and bug fixes are welcome. For larger changes please open an issue to discuss the changes.

Step 1

Start by forking the repository then cloning that to your local machine.

git clone https://github.com/[you]/HotRod

Step 2

Make the changes, and please test them. For larger changes, include an example.

Step 3

Create a pull request.

There may be some back and forth, but we appreciate you working with us to get your contributions merged.

About

A simple repository pattern .NET library with behavior similar to a Read-Only Dictionary (hence: Rod).

Resources

License

Stars

Watchers

Forks