-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #352 from J-Tech-Japan/351-tenant-command-and-quer…
…y-need-to-be-gettenantid-not-tenantid-get Fixed TenantId {get;} to GetTenantId()
- Loading branch information
Showing
275 changed files
with
2,842 additions
and
1,258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
internalUsages/FeatureCheck.Domain/Aggregates/Branches/Queries/BranchExistsQueryN.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using ResultBoxes; | ||
using Sekiban.Core.Aggregate; | ||
using Sekiban.Core.Query.MultiProjections.Projections; | ||
using Sekiban.Core.Query.QueryModel; | ||
namespace FeatureCheck.Domain.Aggregates.Branches.Queries; | ||
|
||
public record BranchExistsQueryN(Guid BranchId) | ||
: INextAggregateQuery<Branch, bool>, IQueryParameterMultiProjectionOptionSettable | ||
{ | ||
public ResultBox<bool> HandleFilter(IEnumerable<AggregateState<Branch>> list, IQueryContext context) | ||
{ | ||
return ResultBox.FromValue(list.Any(b => b.AggregateId == BranchId)); | ||
} | ||
|
||
public MultiProjectionRetrievalOptions? MultiProjectionRetrievalOptions { get; init; } = null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
namespace Sekiban.Core.Aggregate; | ||
|
||
public interface IAggregatePayloadGeneratable<TAggregatePayload> : IAggregatePayloadCommon where TAggregatePayload : IAggregatePayloadCommon | ||
public interface IAggregatePayloadGeneratable<TAggregatePayload> : IAggregatePayloadCommon | ||
where TAggregatePayload : IAggregatePayloadCommon | ||
{ | ||
public static abstract TAggregatePayload CreateInitialPayload(TAggregatePayload? _); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.