From 82d53806d6547dc4fda5e695879e418ff1b08ca1 Mon Sep 17 00:00:00 2001 From: Kazunari001 <130190029+Kazunari001@users.noreply.github.com> Date: Fri, 18 Oct 2024 11:41:23 +0900 Subject: [PATCH] reason:fix the documents (#267) --- .../Cdr.Banking/Cdr.Banking.Business/ExecutionContext.cs | 2 +- samples/Cdr.Banking/README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/Cdr.Banking/Cdr.Banking.Business/ExecutionContext.cs b/samples/Cdr.Banking/Cdr.Banking.Business/ExecutionContext.cs index dfa31dbc6..ea3f675b6 100644 --- a/samples/Cdr.Banking/Cdr.Banking.Business/ExecutionContext.cs +++ b/samples/Cdr.Banking/Cdr.Banking.Business/ExecutionContext.cs @@ -13,5 +13,5 @@ public class ExecutionContext : CoreEx.ExecutionContext /// /// Gets the list of account (identifiers) that the user has access/permission to. /// - public List Accounts { get; } = new(); + public List Accounts { get; } = []; } \ No newline at end of file diff --git a/samples/Cdr.Banking/README.md b/samples/Cdr.Banking/README.md index a377e3f23..c31870afd 100644 --- a/samples/Cdr.Banking/README.md +++ b/samples/Cdr.Banking/README.md @@ -118,7 +118,7 @@ public class ExecutionContext : CoreEx.ExecutionContext /// /// Gets the list of account (identifiers) that the user has access/permission to. /// - public List Accounts { get; } = new(); + public List Accounts { get; } = []; } ``` @@ -212,10 +212,10 @@ In this case, we are setting this using the code-generation for the operation. T # Data access will be auto-implemented for Cosmos as defined for the entity. # Cosmos PartitionKey will be set to the accountId parameter value for data access. # -{ name: GetTransactions, text: Get transaction for account, type: GetColl, webApiRoute: '{accountId}/ransactions', paging: true, cosmosPartitionKey: accountId, +{ name: GetTransactions, text: Get transaction for account, type: GetColl, webApiRoute: '{accountId}/transactions', paging: true, cosmosPartitionKey: accountId, parameters: [ # Note usage of ValidatorCode which will inject the code as-is into the validation logic; being a common validator 'Validators.Account' that will perform the authorization check. - { name: AccountId, type: string, validatorCode: Common(Validators.AccountId), webApiFrom: romRoute, isMandatory: true }, + { name: AccountId, type: string, validatorCode: Common(Validators.AccountId), webApiFrom: FromRoute, isMandatory: true }, { name: Args, type: TransactionArgs, validator: TransactionArgsValidator } ] }