Skip to content

Commit

Permalink
Updated to latest version of Domain package; referenced Aspects
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuck committed Jan 23, 2021
1 parent 566f068 commit 4603558
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 51 deletions.
2 changes: 1 addition & 1 deletion src/YuckQi.Data.Sql.Dapper/Providers/ActivationProvider.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Threading.Tasks;
using YuckQi.Data.Abstract;
using YuckQi.Data.Entities.Abstract;
using YuckQi.Data.Providers.Abstract;
using YuckQi.Data.Sql.Dapper.Providers.Abstract;
using YuckQi.Domain.Aspects.Abstract;
using YuckQi.Domain.Entities.Abstract;

namespace YuckQi.Data.Sql.Dapper.Providers
Expand Down
2 changes: 1 addition & 1 deletion src/YuckQi.Data.Sql.Dapper/Providers/CreationProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
using Dapper;
using Mapster;
using YuckQi.Data.Abstract;
using YuckQi.Data.Entities.Abstract;
using YuckQi.Data.Exceptions;
using YuckQi.Data.Providers.Abstract;
using YuckQi.Data.Sql.Dapper.Providers.Abstract;
using YuckQi.Domain.Aspects.Abstract;
using YuckQi.Domain.Entities.Abstract;

namespace YuckQi.Data.Sql.Dapper.Providers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Threading.Tasks;
using YuckQi.Data.Abstract;
using YuckQi.Data.Entities.Abstract;
using YuckQi.Data.Providers.Abstract;
using YuckQi.Data.Sql.Dapper.Providers.Abstract;
using YuckQi.Domain.Aspects.Abstract;
using YuckQi.Domain.Entities.Abstract;

namespace YuckQi.Data.Sql.Dapper.Providers
Expand Down
2 changes: 1 addition & 1 deletion src/YuckQi.Data.Sql.Dapper/Providers/RevisionProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
using Dapper;
using Mapster;
using YuckQi.Data.Abstract;
using YuckQi.Data.Entities.Abstract;
using YuckQi.Data.Exceptions;
using YuckQi.Data.Providers.Abstract;
using YuckQi.Data.Sql.Dapper.Providers.Abstract;
using YuckQi.Domain.Aspects.Abstract;
using YuckQi.Domain.Entities.Abstract;

namespace YuckQi.Data.Sql.Dapper.Providers
Expand Down
2 changes: 1 addition & 1 deletion src/YuckQi.Data.Sql.Dapper/YuckQi.Data.Sql.Dapper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>Kevin J Lambert</Authors>
<Version>0.2.0</Version>
<Version>0.3.0</Version>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Description>An implementation of YuckQi.Data using Dapper and SimpleCRUD.</Description>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>Kevin J Lambert</Authors>
<Version>0.2.0</Version>
<Version>0.3.0</Version>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Description>An implementation of YuckQi.Data using Entity Framework.</Description>
</PropertyGroup>
Expand Down
9 changes: 0 additions & 9 deletions src/YuckQi.Data/Entities/Abstract/IActivated.cs

This file was deleted.

9 changes: 0 additions & 9 deletions src/YuckQi.Data/Entities/Abstract/ICreated.cs

This file was deleted.

9 changes: 0 additions & 9 deletions src/YuckQi.Data/Entities/Abstract/IDeleted.cs

This file was deleted.

9 changes: 0 additions & 9 deletions src/YuckQi.Data/Entities/Abstract/IRevised.cs

This file was deleted.

4 changes: 2 additions & 2 deletions src/YuckQi.Data/Providers/Abstract/IActivationProvider.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System.Threading.Tasks;
using YuckQi.Data.Entities.Abstract;
using YuckQi.Domain.Aspects.Abstract;
using YuckQi.Domain.Entities.Abstract;

namespace YuckQi.Data.Providers.Abstract
{
public interface IActivationProvider<TEntity, in TKey> where TEntity : IEntity<TKey>, IActivated where TKey : struct
public interface IActivationProvider<TEntity, in TKey> where TEntity : IEntity<TKey>, IActivated, IRevised where TKey : struct
{
Task<TEntity> ActivateAsync(TEntity entity);
Task<TEntity> DeactivateAsync(TEntity entity);
Expand Down
2 changes: 1 addition & 1 deletion src/YuckQi.Data/Providers/Abstract/ICreationProvider.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Threading.Tasks;
using YuckQi.Data.Entities.Abstract;
using YuckQi.Domain.Aspects.Abstract;
using YuckQi.Domain.Entities.Abstract;

namespace YuckQi.Data.Providers.Abstract
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System.Threading.Tasks;
using YuckQi.Data.Entities.Abstract;
using YuckQi.Domain.Aspects.Abstract;
using YuckQi.Domain.Entities.Abstract;

namespace YuckQi.Data.Providers.Abstract
{
public interface ILogicalDeletionProvider<TEntity, in TKey> where TEntity : IEntity<TKey>, IDeleted where TKey : struct
public interface ILogicalDeletionProvider<TEntity, in TKey> where TEntity : IEntity<TKey>, IDeleted, IRevised where TKey : struct
{
Task<TEntity> DeleteAsync(TEntity entity);
Task<TEntity> RestoreAsync(TEntity entity);
Expand Down
2 changes: 1 addition & 1 deletion src/YuckQi.Data/Providers/Abstract/IRevisionProvider.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Threading.Tasks;
using YuckQi.Data.Entities.Abstract;
using YuckQi.Domain.Aspects.Abstract;
using YuckQi.Domain.Entities.Abstract;

namespace YuckQi.Data.Providers.Abstract
Expand Down
4 changes: 2 additions & 2 deletions src/YuckQi.Data/YuckQi.Data.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
<TargetFramework>netstandard2.0</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>Kevin J Lambert</Authors>
<Version>0.2.0</Version>
<Version>0.3.0</Version>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Description>A .NET library providing fine-grained data providers useful in data repository or domain service implementations.</Description>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="YuckQi.Domain" Version="0.4.2" />
<PackageReference Include="YuckQi.Domain" Version="0.4.5" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion test/YuckQi.Data.UnitTests/YuckQi.Data.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NUnit" Version="3.12.0" />
<PackageReference Include="NUnit" Version="3.13.0" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
</ItemGroup>
Expand Down

0 comments on commit 4603558

Please sign in to comment.