public ReadWriteUnitOfWork(AbstractDataContext dataContext) : base(dataContext) { Mandate.ParameterNotNull(dataContext, "dataContext"); Mandate.ParameterCondition(dataContext is DataContext, "dataContext"); _repo = new RepositoryReadWriter(dataContext as DataContext); _transaction = DataContext.BeginTransaction(); }
public ReadWriteUnitOfWork(AbstractDataContext dataContext) : base(dataContext) { Mandate.ParameterNotNull(dataContext, "dataContext"); Mandate.ParameterCondition(dataContext is DataContext, "dataContext"); //TODO: Is this right? Alex will know --Aaron //TODO: We need to inject some sort of ICacheProvider so that we can cache the GetFile(s) lookups occuring in the ReadWriteRepository _repo = new RepositoryReadWriter(dataContext as DataContext); }