Skip to content

Commit 4d2f79e

Browse files
committed
adding missing methods to app service. Updating version.
1 parent db76881 commit 4d2f79e

File tree

8 files changed

+18
-7
lines changed

8 files changed

+18
-7
lines changed

src/DDDToolkit.ApplicationLayer/ApplicationService.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ protected Task<ITransaction> BeginTransaction()
2121
{
2222
return _unitOfWork.BeginTransaction();
2323
}
24+
25+
protected Task<T> GetById<T, TId>(TId id, string[] onlyIncludePaths = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class, IAggregateRoot<TId>
26+
{
27+
return ReadableRepository<T, TId>().GetById(id, onlyIncludePaths, cancellationToken);
28+
}
29+
30+
protected Task<IReadOnlyCollection<T>> Query<T, TId>(QueryOptions queryOptions = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class, IAggregateRoot<TId>
31+
{
32+
return ReadableRepository<T, TId>().Query(queryOptions, cancellationToken);
33+
}
34+
2435
protected Task<IReadOnlyCollection<T>> Query<T, TId>(IQuery<T> query, QueryOptions queryOptions = null, CancellationToken cancellationToken = default(CancellationToken)) where T : class, IAggregateRoot<TId>
2536
{
2637
return ReadableRepository<T, TId>().Query(query, queryOptions, cancellationToken);

src/DDDToolkit.ApplicationLayer/DDDToolkit.ApplicationLayer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<RepositoryUrl>https://github.com/codepb/DDDToolkit</RepositoryUrl>
1313
<PackageTags>DDD, Domain Driven Design, Application Layer</PackageTags>
1414
<PackageIconUrl>https://raw.githubusercontent.com/codepb/DDDToolkit/master/logo/logo.png</PackageIconUrl>
15-
<Version>2.1.0</Version>
15+
<Version>2.1.1</Version>
1616
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1717
</PropertyGroup>
1818

src/DDDToolkit.Core/DDDToolkit.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<RepositoryUrl>https://github.com/codepb/DDDToolkit</RepositoryUrl>
1414
<PackageTags>DDD, Domain Driven Design, Entity, Aggregate</PackageTags>
1515
<PackageIconUrl>https://raw.githubusercontent.com/codepb/DDDToolkit/master/logo/logo.png</PackageIconUrl>
16-
<Version>2.1.0</Version>
16+
<Version>2.1.1</Version>
1717
</PropertyGroup>
1818

1919
<PropertyGroup>

src/DDDToolkit.EntityFramework.Extensions/DDDToolkit.EntityFramework.Extensions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<RepositoryUrl>https://github.com/codepb/DDDToolkit</RepositoryUrl>
1313
<PackageTags>DDD, Domain Driven Design, Entity Framework Core</PackageTags>
1414
<PackageIconUrl>https://raw.githubusercontent.com/codepb/DDDToolkit/master/logo/logo.png</PackageIconUrl>
15-
<Version>2.1.0</Version>
15+
<Version>2.1.1</Version>
1616
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1717
</PropertyGroup>
1818

src/DDDToolkit.EventSourcing/DDDToolkit.EventSourcing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<PackageIconUrl>https://raw.githubusercontent.com/codepb/DDDToolkit/master/logo/logo.png</PackageIconUrl>
1212
<RepositoryUrl>https://github.com/codepb/DDDToolkit</RepositoryUrl>
1313
<PackageTags>DDD, Domain Driven Design, Event Sourcing, Domain Event</PackageTags>
14-
<Version>2.1.0</Version>
14+
<Version>2.1.1</Version>
1515
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1616
</PropertyGroup>
1717

src/DDDToolkit.Repository.Sql/DDDToolkit.Repository.Sql.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<RepositoryUrl>https://github.com/codepb/DDDToolkit</RepositoryUrl>
1313
<PackageTags>DDD, Domain Driven Design, Entity Framework Core, SQL</PackageTags>
1414
<PackageIconUrl>https://raw.githubusercontent.com/codepb/DDDToolkit/master/logo/logo.png</PackageIconUrl>
15-
<Version>2.1.0</Version>
15+
<Version>2.1.1</Version>
1616
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1717
</PropertyGroup>
1818

src/DDDToolkit.Utilities/DDDToolkit.Utilities.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<RepositoryUrl>https://github.com/codepb/DDDToolkit</RepositoryUrl>
1313
<PackageTags>DDD, Domain Driven Design, Utilities</PackageTags>
1414
<PackageIconUrl>https://raw.githubusercontent.com/codepb/DDDToolkit/master/logo/logo.png</PackageIconUrl>
15-
<Version>2.1.0</Version>
15+
<Version>2.1.1</Version>
1616
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1717
</PropertyGroup>
1818

src/DDDToolkit.Validation/DDDToolkit.Validation.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<RepositoryUrl>https://github.com/codepb/DDDToolkit</RepositoryUrl>
1414
<PackageTags>DDD, Domain Driven Design, Validation</PackageTags>
1515
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
16-
<Version>2.1.0</Version>
16+
<Version>2.1.1</Version>
1717
</PropertyGroup>
1818

1919
<ItemGroup>

0 commit comments

Comments
 (0)