Skip to content

Commit

Permalink
take out IAuditable. This belongs to a model project not here
Browse files Browse the repository at this point in the history
  • Loading branch information
florinc committed Mar 9, 2015
1 parent be8568f commit 5742796
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 158 deletions.
90 changes: 0 additions & 90 deletions src/iQuarc.DataAccess.UnitTests/AuditableInterceptorBaseTests.cs

This file was deleted.

11 changes: 0 additions & 11 deletions src/iQuarc.DataAccess.UnitTests/TestDoubles/AuditableExtensions.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
</Otherwise>
</Choose>
<ItemGroup>
<Compile Include="AuditableInterceptorBaseTests.cs" />
<Compile Include="ExceptionHandlingTests\AssertEx.cs" />
<Compile Include="ExceptionHandlingTests\ConcurrencyExceptionHandlerTests.cs" />
<Compile Include="ExceptionHandlingTests\DataValidationExceptionTests.cs" />
Expand All @@ -72,7 +71,6 @@
<Compile Include="ExceptionHandlingTests\ExceptionHandlerTests.cs" />
<Compile Include="RepositoryTests.cs" />
<Compile Include="ExceptionHandlingTests\UpdateExceptionHandlerTests.cs" />
<Compile Include="TestDoubles\AuditableExtensions.cs" />
<Compile Include="TestDoubles\ContextUtilitiesDouble.cs" />
<Compile Include="TestDoubles\EntityEntryDouble.cs" />
<Compile Include="TestDoubles\EntryExtensions.cs" />
Expand Down
35 changes: 0 additions & 35 deletions src/iQuarc.DataAccess/AuditableInterceptorBase.cs

This file was deleted.

12 changes: 0 additions & 12 deletions src/iQuarc.DataAccess/IAuditable.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/iQuarc.DataAccess/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("iQuarc.DataAccess")]
[assembly: AssemblyDescription("Provides a DataAccess abstraction over a relational DB. The implementation is done with EF, which is well hiden from then clients")]
[assembly: AssemblyDescription("Provides a DataAccess abstraction over a relational DB. The implementation is done with EF, which is well hiden from the clients")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("iQuarc")]
[assembly: AssemblyProduct("iQuarc.DataAccess")]
Expand Down
9 changes: 4 additions & 5 deletions src/iQuarc.DataAccess/UnitOfWork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Core.Objects;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Threading.Tasks;
using System.Transactions;
Expand Down Expand Up @@ -107,20 +106,20 @@ private void InterceptSave(List<object> interceptedEntities)
if (entry.State == EntityEntryState.Deleted)
{
Intercept(globalInterceptors, entity, (i, e) => i.OnDelete(e, this));
Intercept(entityInterceptors, entity, (i, e) => i.OnDelete(e, this));
Intercept(entityInterceptors, entity, (i, e) => i.OnDelete(e, this));
}
else
{
Intercept(globalInterceptors, entity, (i, e) => i.OnSave(e, this));
Intercept(entityInterceptors, entity, (i, e) => i.OnSave(e, this));
Intercept(entityInterceptors, entity, (i, e) => i.OnSave(e, this));
}

interceptedEntities.AddIfNotExists(entity);
}

InterceptSave(interceptedEntities);
}

private IEnumerable<IEntityEntry> GetModifiedEntities(DbContext context)
{
IEnumerable<IEntityEntry> modifiedEntities = contextUtilities.GetChangedEntities(context,
Expand Down
4 changes: 2 additions & 2 deletions src/iQuarc.DataAccess/iQuarc.DataAccess.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,12 @@
<Reference Include="System.Data" />
</ItemGroup>
<ItemGroup>
<Compile Include="AuditableInterceptorBase.cs" />
<Compile Include="CollectionExtensions.cs" />
<Compile Include="DbContextBuilder.cs" />
<Compile Include="DbContextFactory.cs" />
<Compile Include="DbContextWrapper.cs" />
<Compile Include="Exceptions\DataValidationException.cs" />
<Compile Include="GlobalEntityInterceptor.cs" />
<Compile Include="IAuditable.cs" />
<Compile Include="IDbContextWrapper.cs" />
<Compile Include="EntityEntry.cs" />
<Compile Include="EntityEntryState.cs" />
Expand Down Expand Up @@ -92,6 +90,8 @@
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="iQuarc.DataAccess.nuspec" />
<None Include="make-package.bat" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down

0 comments on commit 5742796

Please sign in to comment.