Adds the foundation for the repository implementation with abstract Repository, Unit Of Work and Cache provider.

Adding the Query object implementation.
Adds the ModelDtoMapper, which is still a WIP.
Adds the initial implementation of the IContentRepository with dependencies.
This commit is contained in:
Morten@Thinkpad-X220
2012-10-04 13:44:02 -02:00
parent 75e11b2ba8
commit 145cddbcb6
18 changed files with 1783 additions and 7 deletions

View File

@@ -0,0 +1,10 @@
using System;
namespace Umbraco.Core.Persistence.UnitOfWork
{
public interface IUnitOfWork : IDisposable
{
void Commit();
Database Storage { get; } //TODO consider replacing 'Database' with a datastorage adapter, so there is no direct dependency on PetaPoco
}
}

View File

@@ -0,0 +1,7 @@
namespace Umbraco.Core.Persistence.UnitOfWork
{
public interface IUnitOfWorkProvider
{
IUnitOfWork GetUnitOfWork();
}
}