Skip to content

Commit

Permalink
Modified to return an IPage instead of Page
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuck committed Jan 5, 2021
1 parent 22fd433 commit 254c2df
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/YuckQi.Domain.Services/Abstract/ITypeEntityService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
using YuckQi.Domain.Entities.Types.Abstract;
using YuckQi.Domain.Services.Models;
using YuckQi.Domain.Validation;
using YuckQi.Domain.ValueObjects;
using YuckQi.Domain.ValueObjects.Abstract;

namespace YuckQi.Domain.Services.Abstract
{
public interface ITypeEntityService<T, in TKey> where T : ITypeEntity<TKey> where TKey : struct
public interface ITypeEntityService<TTypeEntity, in TKey> where TTypeEntity : ITypeEntity<TKey> where TKey : struct
{
Task<Result<T>> CreateAsync(T entity);
Task<Result<T>> GetAsync(Guid identifier);
Task<Result<T>> GetAsync(TKey key);
Task<Result<T>> ModifyAsync(T entity);
Task<Result<Page<T>>> SearchAsync(TypeSearchCriteria criteria = null);
Task<Result<TTypeEntity>> CreateAsync(TTypeEntity entity);
Task<Result<TTypeEntity>> GetAsync(Guid identifier);
Task<Result<TTypeEntity>> GetAsync(TKey key);
Task<Result<TTypeEntity>> ModifyAsync(TTypeEntity entity);
Task<Result<IPage<TTypeEntity>>> SearchAsync(TypeSearchCriteria criteria = null);
}
}
2 changes: 1 addition & 1 deletion src/YuckQi.Domain.Services/YuckQi.Domain.Services.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.4.2</Version>
<Version>0.4.3</Version>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Description>A .NET library for bootstrapping a domain services project.</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.4.2</Version>
<Version>0.4.3</Version>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Description>A .NET library providing domain validation fundamentals.</Description>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/YuckQi.Domain/YuckQi.Domain.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.4.2</Version>
<Version>0.4.3</Version>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Description>A .NET library for bootstrapping a domain model project.</Description>
</PropertyGroup>
Expand Down

0 comments on commit 254c2df

Please sign in to comment.