Skip to content

Interfaces and common implementations of the Unit of Work pattern

License

Notifications You must be signed in to change notification settings

SimplePersistence/SimplePersistence.UoW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimplePersistence.UoW

Interfaces and common implementations of the Unit of Work pattern

Installation

This library can be installed via NuGet package. Just run the following command:

Install-Package SimplePersistence.UoW

Usage

public interface IApplicationRepository : IRepository<Application, string>
{
  
}

public interface ILevelRepository : IRepository<Level, string>
{
  
}

public interface ILogRepository : IRepository<Log, long>
{
  Task<IEnumerable<Log>> GetAllCreatedAfterAsync(DateTimeOffset on, CancellationToken ct);
}

public interface ILoggingWorkArea : IWorkArea
{
    IApplicationRepository Applications { get; }
    ILevelRepository Levels { get; }
    ILogRepository Logs { get; }
}

public interface IAppUnitOfWork : IUnitOfWork
{
    ILoggingWorkArea Logging { get; }
}

About

Interfaces and common implementations of the Unit of Work pattern

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages