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
- Host: GitHub
- URL: https://github.com/anatolia/standard-repository
- Owner: anatolia
- License: mit
- Created: 2019-06-01T10:43:25.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-09T15:27:49.000Z (about 2 years ago)
- Last Synced: 2025-10-28T08:25:12.208Z (7 months ago)
- Topics: dapper, data-access-layer, entity-framework, revision-history
- Language: C#
- Homepage:
- Size: 179 KB
- Stars: 2
- Watchers: 2
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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