An open API service indexing awesome lists of open source software.

https://github.com/anatolia/standard-repository

a simple alternative for entity framework
https://github.com/anatolia/standard-repository

dapper data-access-layer entity-framework revision-history

Last synced: 5 months ago
JSON representation

a simple alternative for entity framework

Awesome Lists containing this project

README

          

# standard-repository

this project is a simple alternative for entity framework code first...

with StandardRepository;

you get record revisions.

Task>> SelectRevisions(long id);
Task RestoreRevision(long currentUserId, long id, int revision);

and also soft delete logic.

Task Delete(long currentUserId, long id);
Task UndoDelete(long currentUserId, long id);
Task HardDelete(long currentUserId, long id);

but there is no support for having and group by...

and for complex queries it suggests you to use stored procedures.


## You can install this package via NuGet
Install-Package StandardRepository.PostgreSQL

## Example Project

please check the "translation" project for an example usage.

https://github.com/anatolia/translation/blob/master/Source/Translation.Client.Web/Helpers/DbGeneratorHelper.cs#L47
https://github.com/anatolia/translation/blob/master/Source/Translation.Data/Repositories/OrganizationRepository.cs#L13
https://github.com/anatolia/translation/blob/master/Source/Translation.Data/UnitOfWorks/LogOnUnitOfWork.cs#L28