Skip to content
A simple .NET persistence library which uses file storage
C# HTML CSS JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example.Domain
Example.Web
SimpleDatastore.Tests
SimpleDatastore
.gitignore
GitVersion.yml
README.md
SimpleDatastore.sln
azure-pipelines.yml

README.md

SimpleDatastore

NuGet Build Status

A simple .NET persistence library which uses XML file storage.

This project has now been updated to use .NET standard and the built-in dependency resolution framework. The easiest way to use it in an ASP.NET Core app. Simply include the following in your ConfigureServices to use the default configuration:

services.AddSimpleDatastore();

Then to use SimpleDatastore create instances of the IRepository<> for your types. All your objects need to inherit from PersistentObject. Decorate any fields you want to persist with the System.Runtime.Serialization.DataMember attribute. The default configuration uses the ASP.NET IMemoryCache but you can implement your own version.

A full working example app is included in the solution.

You can’t perform that action at this time.