diff --git a/CHANGELOG.md b/CHANGELOG.md
index d8745defd..7cbc1b9e9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,11 @@
Represents the **NuGet** versions.
+## v5.17.0
+- *Enhancement:* The `Common`-project related code-generated artefacts have all been updated to leverage `global using` and file scoped namespace declarations.
+ - A new [`GlobalUsings.cs`](./templates/Beef.Template.Solution/content/Company.AppName.Common/GlobalUsings.cs) will need to be manually added to existing `Common` projects to enable; see [this](./templates/Beef.Template.Solution/content/Company.AppName.Common/GlobalUsings.cs) for an example and alter the last two namespaces accordingly.
+ - The `*.Common.csproj` will need to be manually updated to include `Preview` and `true`.
+
## v5.16.2
- *Fixed:* `Operation.AuthEntity` and `Operation.AuthOperation` updated to code-gen the `Manager`-based authorization (`ExecutionContent.UserIsAuthorized`) invocation.
- *Fixed:* Code-generation logging/auditing of endpoints updated to also include the authorization configuration.
diff --git a/Common.targets b/Common.targets
index a55ce5c00..8d377acea 100644
--- a/Common.targets
+++ b/Common.targets
@@ -1,6 +1,6 @@
- 5.16.2
+ 5.17.0
preview
Avanade
Avanade
diff --git a/docs/Entity-CodeGeneration-Config.md b/docs/Entity-CodeGeneration-Config.md
index 0a591004a..151e953af 100644
--- a/docs/Entity-CodeGeneration-Config.md
+++ b/docs/Entity-CodeGeneration-Config.md
@@ -35,8 +35,9 @@ Category | Description
[`OData`](#OData) | Provides the _OData Data-layer_ configuration.
[`HttpAgent`](#HttpAgent) | Provides the _HTTP Agent Data-layer_ configuration.
[`gRPC`](#gRPC) | Provides the _gRPC_ configuration.
-[`Path`](#Path) | Provides the _Path (Directory)_ configuration for the generated artefacts.
-[`Namespace`](#Namespace) | Provides the _.NET Namespace_ configuration for the generated artefacts.
+[`Path`](#Path) | Provides the _Path (Directory)_ configuration.
+[`Namespace`](#Namespace) | Provides the _.NET Namespace_ configuration.
+[`Auth`](#Auth) | Provides the _Authorization_ configuration.
[`Collections`](#Collections) | Provides related child (hierarchical) configuration.
The properties with a bold name are those that are more typically used (considered more important).
@@ -188,7 +189,7 @@ Property | Description
## Path
-Provides the _Path (Directory)_ configuration for the generated artefacts.
+Provides the _Path (Directory)_ configuration.
Property | Description
-|-
@@ -200,7 +201,7 @@ Property | Description
## Namespace
-Provides the _.NET Namespace_ configuration for the generated artefacts.
+Provides the _.NET Namespace_ configuration.
Property | Description
-|-
@@ -211,6 +212,18 @@ Property | Description
+## Auth
+Provides the _Authorization_ configuration.
+
+Property | Description
+-|-
+`authActionCreate` | The default `Operation.AuthAction` for an `Operation.Type` of `Create`.
† Defaults to `Create`.
+`authActionRead` | The default `Operation.AuthAction` for an `Operation.Type` of `Get` or `GetColl`.
† Defaults to `Read`.
+`authActionUpdate` | The default `Operation.AuthAction` for an `Operation.Type` of `Update`.
† Defaults to `Update`.
+`authActionDelete` | The default `Operation.AuthAction` for an `Operation.Type` of `Delete`.
† Defaults to `Delete`.
+
+
+
## Collections
Provides related child (hierarchical) configuration.
diff --git a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/Account.cs b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/Account.cs
index d0ce25cb4..f2bfa22b7 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/Account.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/Account.cs
@@ -2,91 +2,90 @@
* This file is automatically generated; any changes will be lost.
*/
-namespace Cdr.Banking.Business.Data.Model
+namespace Cdr.Banking.Business.Data.Model;
+
+///
+/// Represents the Account model for data persistence model.
+///
+public partial class Account : IIdentifier
{
///
- /// Represents the Account model for data persistence model.
- ///
- public partial class Account : IIdentifier
- {
- ///
- /// Gets or sets the identifier.
- ///
- public string? Id { get; set; }
-
- ///
- /// Gets or sets the Creation Date.
- ///
- public DateTime CreationDate { get; set; }
-
- ///
- /// Gets or sets the Display Name.
- ///
- public string? DisplayName { get; set; }
-
- ///
- /// Gets or sets the Nickname.
- ///
- public string? Nickname { get; set; }
-
- ///
- /// Gets or sets the Open Status.
- ///
- public string? OpenStatus { get; set; }
-
- ///
- /// Indicates whether Is Owned.
- ///
- public bool IsOwned { get; set; }
-
- ///
- /// Gets or sets the Masked Number.
- ///
- public string? MaskedNumber { get; set; }
-
- ///
- /// Gets or sets the Product Category.
- ///
- public string? ProductCategory { get; set; }
-
- ///
- /// Gets or sets the Product Name.
- ///
- public string? ProductName { get; set; }
-
- ///
- /// Gets or sets the Bsb.
- ///
- public string? Bsb { get; set; }
-
- ///
- /// Gets or sets the Account Number.
- ///
- public string? AccountNumber { get; set; }
-
- ///
- /// Gets or sets the Bundle Name.
- ///
- public string? BundleName { get; set; }
-
- ///
- /// Gets or sets the Specific Account U Type.
- ///
- public string? SpecificAccountUType { get; set; }
-
- ///
- /// Gets or sets the Term Deposit.
- ///
- public TermDepositAccount? TermDeposit { get; set; }
-
- ///
- /// Gets or sets the Credit Card.
- ///
- public CreditCardAccount? CreditCard { get; set; }
-
- ///
- /// Gets or sets the Balance.
- ///
- public Balance? Balance { get; set; }
- }
-}
\ No newline at end of file
+ /// Gets or sets the identifier.
+ ///
+ public string? Id { get; set; }
+
+ ///
+ /// Gets or sets the Creation Date.
+ ///
+ public DateTime CreationDate { get; set; }
+
+ ///
+ /// Gets or sets the Display Name.
+ ///
+ public string? DisplayName { get; set; }
+
+ ///
+ /// Gets or sets the Nickname.
+ ///
+ public string? Nickname { get; set; }
+
+ ///
+ /// Gets or sets the Open Status.
+ ///
+ public string? OpenStatus { get; set; }
+
+ ///
+ /// Indicates whether Is Owned.
+ ///
+ public bool IsOwned { get; set; }
+
+ ///
+ /// Gets or sets the Masked Number.
+ ///
+ public string? MaskedNumber { get; set; }
+
+ ///
+ /// Gets or sets the Product Category.
+ ///
+ public string? ProductCategory { get; set; }
+
+ ///
+ /// Gets or sets the Product Name.
+ ///
+ public string? ProductName { get; set; }
+
+ ///
+ /// Gets or sets the Bsb.
+ ///
+ public string? Bsb { get; set; }
+
+ ///
+ /// Gets or sets the Account Number.
+ ///
+ public string? AccountNumber { get; set; }
+
+ ///
+ /// Gets or sets the Bundle Name.
+ ///
+ public string? BundleName { get; set; }
+
+ ///
+ /// Gets or sets the Specific Account U Type.
+ ///
+ public string? SpecificAccountUType { get; set; }
+
+ ///
+ /// Gets or sets the Term Deposit.
+ ///
+ public TermDepositAccount? TermDeposit { get; set; }
+
+ ///
+ /// Gets or sets the Credit Card.
+ ///
+ public CreditCardAccount? CreditCard { get; set; }
+
+ ///
+ /// Gets or sets the Balance.
+ ///
+ public Balance? Balance { get; set; }
+}
diff --git a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/AccountUType.cs b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/AccountUType.cs
index 1dac4412a..c1f8c6f16 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/AccountUType.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/AccountUType.cs
@@ -2,15 +2,14 @@
* This file is automatically generated; any changes will be lost.
*/
-namespace Cdr.Banking.Business.Data.Model
-{
- ///
- /// Represents the Account U Type model.
- ///
- public partial class AccountUType : ReferenceDataBase { }
+namespace Cdr.Banking.Business.Data.Model;
- ///
- /// Represents the collection.
- ///
- public partial class AccountUTypeCollection : List { }
-}
\ No newline at end of file
+///
+/// Represents the Account U Type model.
+///
+public partial class AccountUType : ReferenceDataBase { }
+
+///
+/// Represents the collection.
+///
+public partial class AccountUTypeCollection : List { }
diff --git a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/Balance.cs b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/Balance.cs
index e47768739..99a3c1575 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/Balance.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/Balance.cs
@@ -2,41 +2,40 @@
* This file is automatically generated; any changes will be lost.
*/
-namespace Cdr.Banking.Business.Data.Model
+namespace Cdr.Banking.Business.Data.Model;
+
+///
+/// Represents the Balance model.
+///
+public partial class Balance
{
///
- /// Represents the Balance model.
+ /// Gets or sets the Current Balance.
///
- public partial class Balance
- {
- ///
- /// Gets or sets the Current Balance.
- ///
- public decimal CurrentBalance { get; set; }
+ public decimal CurrentBalance { get; set; }
- ///
- /// Gets or sets the Available Balance.
- ///
- public decimal AvailableBalance { get; set; }
+ ///
+ /// Gets or sets the Available Balance.
+ ///
+ public decimal AvailableBalance { get; set; }
- ///
- /// Gets or sets the Credit Limit.
- ///
- public decimal CreditLimit { get; set; }
+ ///
+ /// Gets or sets the Credit Limit.
+ ///
+ public decimal CreditLimit { get; set; }
- ///
- /// Gets or sets the Amortised Limit.
- ///
- public decimal AmortisedLimit { get; set; }
+ ///
+ /// Gets or sets the Amortised Limit.
+ ///
+ public decimal AmortisedLimit { get; set; }
- ///
- /// Gets or sets the Currency.
- ///
- public string? Currency { get; set; }
+ ///
+ /// Gets or sets the Currency.
+ ///
+ public string? Currency { get; set; }
- ///
- /// Gets or sets the Purses.
- ///
- public BalancePurseCollection? Purses { get; set; }
- }
-}
\ No newline at end of file
+ ///
+ /// Gets or sets the Purses.
+ ///
+ public BalancePurseCollection? Purses { get; set; }
+}
diff --git a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/BalancePurse.cs b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/BalancePurse.cs
index 3f21503ae..746957735 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/BalancePurse.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/BalancePurse.cs
@@ -2,26 +2,25 @@
* This file is automatically generated; any changes will be lost.
*/
-namespace Cdr.Banking.Business.Data.Model
+namespace Cdr.Banking.Business.Data.Model;
+
+///
+/// Represents the Purse model.
+///
+public partial class BalancePurse
{
///
- /// Represents the Purse model.
+ /// Gets or sets the Amount.
///
- public partial class BalancePurse
- {
- ///
- /// Gets or sets the Amount.
- ///
- public decimal Amount { get; set; }
-
- ///
- /// Gets or sets the Currency.
- ///
- public string? Currency { get; set; }
- }
+ public decimal Amount { get; set; }
///
- /// Represents the collection.
+ /// Gets or sets the Currency.
///
- public partial class BalancePurseCollection : List { }
-}
\ No newline at end of file
+ public string? Currency { get; set; }
+}
+
+///
+/// Represents the collection.
+///
+public partial class BalancePurseCollection : List { }
diff --git a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/CreditCardAccount.cs b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/CreditCardAccount.cs
index f49d6e3cb..b1d4f0471 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/CreditCardAccount.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/CreditCardAccount.cs
@@ -2,31 +2,30 @@
* This file is automatically generated; any changes will be lost.
*/
-namespace Cdr.Banking.Business.Data.Model
+namespace Cdr.Banking.Business.Data.Model;
+
+///
+/// Represents the Credit Card Account model.
+///
+public partial class CreditCardAccount
{
///
- /// Represents the Credit Card Account model.
+ /// Gets or sets the Min Payment Amount.
///
- public partial class CreditCardAccount
- {
- ///
- /// Gets or sets the Min Payment Amount.
- ///
- public decimal MinPaymentAmount { get; set; }
+ public decimal MinPaymentAmount { get; set; }
- ///
- /// Gets or sets the Payment Due Amount.
- ///
- public decimal PaymentDueAmount { get; set; }
+ ///
+ /// Gets or sets the Payment Due Amount.
+ ///
+ public decimal PaymentDueAmount { get; set; }
- ///
- /// Gets or sets the Payment Currency.
- ///
- public string? PaymentCurrency { get; set; }
+ ///
+ /// Gets or sets the Payment Currency.
+ ///
+ public string? PaymentCurrency { get; set; }
- ///
- /// Gets or sets the Payment Due Date.
- ///
- public DateTime PaymentDueDate { get; set; }
- }
-}
\ No newline at end of file
+ ///
+ /// Gets or sets the Payment Due Date.
+ ///
+ public DateTime PaymentDueDate { get; set; }
+}
diff --git a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/MaturityInstructions.cs b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/MaturityInstructions.cs
index ff0a2b6e4..fa9718228 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/MaturityInstructions.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/MaturityInstructions.cs
@@ -2,15 +2,14 @@
* This file is automatically generated; any changes will be lost.
*/
-namespace Cdr.Banking.Business.Data.Model
-{
- ///
- /// Represents the Maturity Instructions model.
- ///
- public partial class MaturityInstructions : ReferenceDataBase { }
+namespace Cdr.Banking.Business.Data.Model;
- ///
- /// Represents the collection.
- ///
- public partial class MaturityInstructionsCollection : List { }
-}
\ No newline at end of file
+///
+/// Represents the Maturity Instructions model.
+///
+public partial class MaturityInstructions : ReferenceDataBase { }
+
+///
+/// Represents the collection.
+///
+public partial class MaturityInstructionsCollection : List { }
diff --git a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/OpenStatus.cs b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/OpenStatus.cs
index 2b28a3277..da73c0c30 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/OpenStatus.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/OpenStatus.cs
@@ -2,15 +2,14 @@
* This file is automatically generated; any changes will be lost.
*/
-namespace Cdr.Banking.Business.Data.Model
-{
- ///
- /// Represents the Open Status model.
- ///
- public partial class OpenStatus : ReferenceDataBase { }
+namespace Cdr.Banking.Business.Data.Model;
- ///
- /// Represents the collection.
- ///
- public partial class OpenStatusCollection : List { }
-}
\ No newline at end of file
+///
+/// Represents the Open Status model.
+///
+public partial class OpenStatus : ReferenceDataBase { }
+
+///
+/// Represents the collection.
+///
+public partial class OpenStatusCollection : List { }
diff --git a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/ProductCategory.cs b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/ProductCategory.cs
index 51ab1f4d6..3cf1cdc44 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/ProductCategory.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/ProductCategory.cs
@@ -2,15 +2,14 @@
* This file is automatically generated; any changes will be lost.
*/
-namespace Cdr.Banking.Business.Data.Model
-{
- ///
- /// Represents the Product Category model.
- ///
- public partial class ProductCategory : ReferenceDataBase { }
+namespace Cdr.Banking.Business.Data.Model;
- ///
- /// Represents the collection.
- ///
- public partial class ProductCategoryCollection : List { }
-}
\ No newline at end of file
+///
+/// Represents the Product Category model.
+///
+public partial class ProductCategory : ReferenceDataBase { }
+
+///
+/// Represents the collection.
+///
+public partial class ProductCategoryCollection : List { }
diff --git a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/TermDepositAccount.cs b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/TermDepositAccount.cs
index 585988a6c..2346fce10 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/TermDepositAccount.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/TermDepositAccount.cs
@@ -2,36 +2,35 @@
* This file is automatically generated; any changes will be lost.
*/
-namespace Cdr.Banking.Business.Data.Model
+namespace Cdr.Banking.Business.Data.Model;
+
+///
+/// Represents the Term Deposit Account model.
+///
+public partial class TermDepositAccount
{
///
- /// Represents the Term Deposit Account model.
+ /// Gets or sets the Lodgement Date.
///
- public partial class TermDepositAccount
- {
- ///
- /// Gets or sets the Lodgement Date.
- ///
- public DateTime LodgementDate { get; set; }
+ public DateTime LodgementDate { get; set; }
- ///
- /// Gets or sets the Maturity Date.
- ///
- public DateTime MaturityDate { get; set; }
+ ///
+ /// Gets or sets the Maturity Date.
+ ///
+ public DateTime MaturityDate { get; set; }
- ///
- /// Gets or sets the Maturity Amount.
- ///
- public decimal MaturityAmount { get; set; }
+ ///
+ /// Gets or sets the Maturity Amount.
+ ///
+ public decimal MaturityAmount { get; set; }
- ///
- /// Gets or sets the Maturity Currency.
- ///
- public string? MaturityCurrency { get; set; }
+ ///
+ /// Gets or sets the Maturity Currency.
+ ///
+ public string? MaturityCurrency { get; set; }
- ///
- /// Gets or sets the Maturity Instructions.
- ///
- public string? MaturityInstructions { get; set; }
- }
-}
\ No newline at end of file
+ ///
+ /// Gets or sets the Maturity Instructions.
+ ///
+ public string? MaturityInstructions { get; set; }
+}
diff --git a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/Transaction.cs b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/Transaction.cs
index e8f86f4a9..3b72ced50 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/Transaction.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/Transaction.cs
@@ -2,96 +2,95 @@
* This file is automatically generated; any changes will be lost.
*/
-namespace Cdr.Banking.Business.Data.Model
+namespace Cdr.Banking.Business.Data.Model;
+
+///
+/// Represents the Transaction model for data persistence model.
+///
+public partial class Transaction : IIdentifier
{
///
- /// Represents the Transaction model for data persistence model.
- ///
- public partial class Transaction : IIdentifier
- {
- ///
- /// Gets or sets the identifier.
- ///
- public string? Id { get; set; }
-
- ///
- /// Gets or sets the Account Id.
- ///
- public string? AccountId { get; set; }
-
- ///
- /// Indicates whether Is Detail Available.
- ///
- public bool IsDetailAvailable { get; set; }
-
- ///
- /// Gets or sets the Type.
- ///
- public string? Type { get; set; }
-
- ///
- /// Gets or sets the Status.
- ///
- public string? Status { get; set; }
-
- ///
- /// Gets or sets the Description.
- ///
- public string? Description { get; set; }
-
- ///
- /// Gets or sets the Posting Date Time.
- ///
- public DateTime PostingDateTime { get; set; }
-
- ///
- /// Gets or sets the Execution Date Time.
- ///
- public DateTime ExecutionDateTime { get; set; }
-
- ///
- /// Gets or sets the Amount.
- ///
- public decimal Amount { get; set; }
-
- ///
- /// Gets or sets the Currency.
- ///
- public string? Currency { get; set; }
-
- ///
- /// Gets or sets the Reference.
- ///
- public string? Reference { get; set; }
-
- ///
- /// Gets or sets the Merchant Name.
- ///
- public string? MerchantName { get; set; }
-
- ///
- /// Gets or sets the Merchant Category Code.
- ///
- public string? MerchantCategoryCode { get; set; }
-
- ///
- /// Gets or sets the Biller Code.
- ///
- public string? BillerCode { get; set; }
-
- ///
- /// Gets or sets the Biller Name.
- ///
- public string? BillerName { get; set; }
-
- ///
- /// Gets or sets the Apca Number.
- ///
- public string? ApcaNumber { get; set; }
-
- ///
- /// Gets or sets the Transaction Date Time.
- ///
- public DateTime TransactionDateTime { get; set; }
- }
-}
\ No newline at end of file
+ /// Gets or sets the identifier.
+ ///
+ public string? Id { get; set; }
+
+ ///
+ /// Gets or sets the Account Id.
+ ///
+ public string? AccountId { get; set; }
+
+ ///
+ /// Indicates whether Is Detail Available.
+ ///
+ public bool IsDetailAvailable { get; set; }
+
+ ///
+ /// Gets or sets the Type.
+ ///
+ public string? Type { get; set; }
+
+ ///
+ /// Gets or sets the Status.
+ ///
+ public string? Status { get; set; }
+
+ ///
+ /// Gets or sets the Description.
+ ///
+ public string? Description { get; set; }
+
+ ///
+ /// Gets or sets the Posting Date Time.
+ ///
+ public DateTime PostingDateTime { get; set; }
+
+ ///
+ /// Gets or sets the Execution Date Time.
+ ///
+ public DateTime ExecutionDateTime { get; set; }
+
+ ///
+ /// Gets or sets the Amount.
+ ///
+ public decimal Amount { get; set; }
+
+ ///
+ /// Gets or sets the Currency.
+ ///
+ public string? Currency { get; set; }
+
+ ///
+ /// Gets or sets the Reference.
+ ///
+ public string? Reference { get; set; }
+
+ ///
+ /// Gets or sets the Merchant Name.
+ ///
+ public string? MerchantName { get; set; }
+
+ ///
+ /// Gets or sets the Merchant Category Code.
+ ///
+ public string? MerchantCategoryCode { get; set; }
+
+ ///
+ /// Gets or sets the Biller Code.
+ ///
+ public string? BillerCode { get; set; }
+
+ ///
+ /// Gets or sets the Biller Name.
+ ///
+ public string? BillerName { get; set; }
+
+ ///
+ /// Gets or sets the Apca Number.
+ ///
+ public string? ApcaNumber { get; set; }
+
+ ///
+ /// Gets or sets the Transaction Date Time.
+ ///
+ public DateTime TransactionDateTime { get; set; }
+}
diff --git a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/TransactionStatus.cs b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/TransactionStatus.cs
index a0f37b4fb..43a75bbcf 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/TransactionStatus.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/TransactionStatus.cs
@@ -2,15 +2,14 @@
* This file is automatically generated; any changes will be lost.
*/
-namespace Cdr.Banking.Business.Data.Model
-{
- ///
- /// Represents the Transaction Status model.
- ///
- public partial class TransactionStatus : ReferenceDataBase { }
+namespace Cdr.Banking.Business.Data.Model;
- ///
- /// Represents the collection.
- ///
- public partial class TransactionStatusCollection : List { }
-}
\ No newline at end of file
+///
+/// Represents the Transaction Status model.
+///
+public partial class TransactionStatus : ReferenceDataBase { }
+
+///
+/// Represents the collection.
+///
+public partial class TransactionStatusCollection : List { }
diff --git a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/TransactionType.cs b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/TransactionType.cs
index 4b02b86eb..693e0b642 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/TransactionType.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Business/Data/Model/Generated/TransactionType.cs
@@ -2,15 +2,14 @@
* This file is automatically generated; any changes will be lost.
*/
-namespace Cdr.Banking.Business.Data.Model
-{
- ///
- /// Represents the Transaction Type model.
- ///
- public partial class TransactionType : ReferenceDataBase { }
+namespace Cdr.Banking.Business.Data.Model;
- ///
- /// Represents the collection.
- ///
- public partial class TransactionTypeCollection : List { }
-}
\ No newline at end of file
+///
+/// Represents the Transaction Type model.
+///
+public partial class TransactionType : ReferenceDataBase { }
+
+///
+/// Represents the collection.
+///
+public partial class TransactionTypeCollection : List { }
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/AccountAgent.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/AccountAgent.cs
index 08ea97628..454c9cd07 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/AccountAgent.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/AccountAgent.cs
@@ -2,50 +2,38 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Net.Http;
-using System.Threading;
-using System.Threading.Tasks;
-using CoreEx.Entities;
-using CoreEx.Http;
-using CoreEx.Json;
-using Cdr.Banking.Common.Entities;
-using RefDataNamespace = Cdr.Banking.Common.Entities;
+namespace Cdr.Banking.Common.Agents;
-namespace Cdr.Banking.Common.Agents
+///
+/// Provides the HTTP agent.
+///
+public partial class AccountAgent : TypedHttpClientBase, IAccountAgent
{
///
- /// Provides the HTTP agent.
+ /// Initializes a new instance of the class.
///
- public partial class AccountAgent : TypedHttpClientBase, IAccountAgent
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// The underlying .
- /// The optional .
- /// The optional .
- public AccountAgent(HttpClient client, IJsonSerializer? jsonSerializer = null, CoreEx.ExecutionContext? executionContext = null) : base(client, jsonSerializer, executionContext) { }
+ /// The underlying .
+ /// The optional .
+ /// The optional .
+ public AccountAgent(HttpClient client, IJsonSerializer? jsonSerializer = null, CoreEx.ExecutionContext? executionContext = null) : base(client, jsonSerializer, executionContext) { }
- ///
- public Task> GetAccountsAsync(AccountArgs? args, PagingArgs? paging = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => GetAsync("api/v1/banking/accounts", requestOptions: requestOptions.IncludePaging(paging), args: HttpArgs.Create(new HttpArg("args", args, HttpArgType.FromUriUseProperties)), cancellationToken: cancellationToken);
+ ///
+ public Task> GetAccountsAsync(AccountArgs? args, PagingArgs? paging = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => GetAsync("api/v1/banking/accounts", requestOptions: requestOptions.IncludePaging(paging), args: HttpArgs.Create(new HttpArg("args", args, HttpArgType.FromUriUseProperties)), cancellationToken: cancellationToken);
- ///
- public Task> GetAccountsQueryAsync(QueryArgs? query = null, PagingArgs? paging = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => GetAsync("api/v1/banking/accounts/query", requestOptions: requestOptions.IncludeQuery(query).IncludePaging(paging), args: HttpArgs.Create(), cancellationToken: cancellationToken);
+ ///
+ public Task> GetAccountsQueryAsync(QueryArgs? query = null, PagingArgs? paging = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => GetAsync("api/v1/banking/accounts/query", requestOptions: requestOptions.IncludeQuery(query).IncludePaging(paging), args: HttpArgs.Create(), cancellationToken: cancellationToken);
- ///
- public Task> GetDetailAsync(string? accountId, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => GetAsync("api/v1/banking/accounts/{accountId}", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("accountId", accountId)), cancellationToken: cancellationToken);
+ ///
+ public Task> GetDetailAsync(string? accountId, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => GetAsync("api/v1/banking/accounts/{accountId}", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("accountId", accountId)), cancellationToken: cancellationToken);
- ///
- public Task> GetBalanceAsync(string? accountId, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => GetAsync("api/v1/banking/accounts/{accountId}/balance", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("accountId", accountId)), cancellationToken: cancellationToken);
+ ///
+ public Task> GetBalanceAsync(string? accountId, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => GetAsync("api/v1/banking/accounts/{accountId}/balance", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("accountId", accountId)), cancellationToken: cancellationToken);
- ///
- public Task GetStatementAsync(string? accountId, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => GetAsync("api/v1/banking/accounts/{accountId}/statement", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("accountId", accountId)), cancellationToken: cancellationToken);
- }
+ ///
+ public Task GetStatementAsync(string? accountId, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => GetAsync("api/v1/banking/accounts/{accountId}/statement", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("accountId", accountId)), cancellationToken: cancellationToken);
}
\ No newline at end of file
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/IAccountAgent.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/IAccountAgent.cs
index 6842fd6bc..c3a3d6f56 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/IAccountAgent.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/IAccountAgent.cs
@@ -2,71 +2,57 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Net.Http;
-using System.Threading;
-using System.Threading.Tasks;
-using CoreEx.Configuration;
-using CoreEx.Entities;
-using CoreEx.Http;
-using CoreEx.Json;
-using Microsoft.Extensions.Logging;
-using Cdr.Banking.Common.Entities;
-using RefDataNamespace = Cdr.Banking.Common.Entities;
+namespace Cdr.Banking.Common.Agents;
-namespace Cdr.Banking.Common.Agents
+///
+/// Defines the HTTP agent.
+///
+public partial interface IAccountAgent
{
///
- /// Defines the HTTP agent.
+ /// Get all accounts.
///
- public partial interface IAccountAgent
- {
- ///
- /// Get all accounts.
- ///
- /// The Args (see ).
- /// The .
- /// The optional .
- /// The .
- /// A .
- Task> GetAccountsAsync(AccountArgs? args, PagingArgs? paging = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
+ /// The Args (see ).
+ /// The .
+ /// The optional .
+ /// The .
+ /// A .
+ Task> GetAccountsAsync(AccountArgs? args, PagingArgs? paging = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
- ///
- /// Get all accounts.
- ///
- /// The .
- /// The .
- /// The optional .
- /// The .
- /// A .
- Task> GetAccountsQueryAsync(QueryArgs? query = null, PagingArgs? paging = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
+ ///
+ /// Get all accounts.
+ ///
+ /// The .
+ /// The .
+ /// The optional .
+ /// The .
+ /// A .
+ Task> GetAccountsQueryAsync(QueryArgs? query = null, PagingArgs? paging = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
- ///
- /// Get .
- ///
- /// The identifier.
- /// The optional .
- /// The .
- /// A .
- Task> GetDetailAsync(string? accountId, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
+ ///
+ /// Get .
+ ///
+ /// The identifier.
+ /// The optional .
+ /// The .
+ /// A .
+ Task> GetDetailAsync(string? accountId, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
- ///
- /// Get .
- ///
- /// The identifier.
- /// The optional .
- /// The .
- /// A .
- Task> GetBalanceAsync(string? accountId, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
+ ///
+ /// Get .
+ ///
+ /// The identifier.
+ /// The optional .
+ /// The .
+ /// A .
+ Task> GetBalanceAsync(string? accountId, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
- ///
- /// Get statement (file).
- ///
- /// The identifier.
- /// The optional .
- /// The .
- /// A .
- Task GetStatementAsync(string? accountId, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
- }
+ ///
+ /// Get statement (file).
+ ///
+ /// The identifier.
+ /// The optional .
+ /// The .
+ /// A .
+ Task GetStatementAsync(string? accountId, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
}
\ No newline at end of file
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/IReferenceDataAgent.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/IReferenceDataAgent.cs
index 08baeeb3f..1ad06ef57 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/IReferenceDataAgent.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/IReferenceDataAgent.cs
@@ -2,89 +2,74 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Net.Http;
-using System.Threading;
-using System.Threading.Tasks;
-using CoreEx.Configuration;
-using CoreEx.Entities;
-using CoreEx.Http;
-using CoreEx.Json;
-using CoreEx.RefData;
-using Microsoft.Extensions.Logging;
-using Cdr.Banking.Common.Entities;
-using RefDataNamespace = Cdr.Banking.Common.Entities;
+namespace Cdr.Banking.Common.Agents;
-namespace Cdr.Banking.Common.Agents
+///
+/// Defines the ReferenceData HTTP agent.
+///
+public partial interface IReferenceDataAgent
{
///
- /// Defines the ReferenceData HTTP agent.
+ /// Gets all of the items that match the filter arguments.
///
- public partial interface IReferenceDataAgent
- {
- ///
- /// Gets all of the items that match the filter arguments.
- ///
- /// The optional arguments.
- /// The optional .
- /// The .
- /// A .
- Task> OpenStatusGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
+ /// The optional arguments.
+ /// The optional .
+ /// The .
+ /// A .
+ Task> OpenStatusGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
- ///
- /// Gets all of the items that match the filter arguments.
- ///
- /// The optional arguments.
- /// The optional .
- /// The .
- /// A .
- Task> ProductCategoryGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
+ ///
+ /// Gets all of the items that match the filter arguments.
+ ///
+ /// The optional arguments.
+ /// The optional .
+ /// The .
+ /// A .
+ Task> ProductCategoryGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
- ///
- /// Gets all of the items that match the filter arguments.
- ///
- /// The optional arguments.
- /// The optional .
- /// The .
- /// A .
- Task> AccountUTypeGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
+ ///
+ /// Gets all of the items that match the filter arguments.
+ ///
+ /// The optional arguments.
+ /// The optional .
+ /// The .
+ /// A .
+ Task> AccountUTypeGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
- ///
- /// Gets all of the items that match the filter arguments.
- ///
- /// The optional arguments.
- /// The optional .
- /// The .
- /// A .
- Task> MaturityInstructionsGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
+ ///
+ /// Gets all of the items that match the filter arguments.
+ ///
+ /// The optional arguments.
+ /// The optional .
+ /// The .
+ /// A .
+ Task> MaturityInstructionsGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
- ///
- /// Gets all of the items that match the filter arguments.
- ///
- /// The optional arguments.
- /// The optional .
- /// The .
- /// A .
- Task> TransactionTypeGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
+ ///
+ /// Gets all of the items that match the filter arguments.
+ ///
+ /// The optional arguments.
+ /// The optional .
+ /// The .
+ /// A .
+ Task> TransactionTypeGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
- ///
- /// Gets all of the items that match the filter arguments.
- ///
- /// The optional arguments.
- /// The optional .
- /// The .
- /// A .
- Task> TransactionStatusGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
+ ///
+ /// Gets all of the items that match the filter arguments.
+ ///
+ /// The optional arguments.
+ /// The optional .
+ /// The .
+ /// A .
+ Task> TransactionStatusGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
- ///
- /// Gets the reference data entries for the specified entities and codes from the query string; e.g: api/v1/ref?entity=codeX,codeY&entity2=codeZ&entity3
- ///
- /// The optional list of reference data names.
- /// The optional .
- /// The .
- /// A .
- /// The reference data objects will need to be manually extracted from the corresponding response content.
- Task GetNamedAsync(string[] names, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
- }
+ ///
+ /// Gets the reference data entries for the specified entities and codes from the query string; e.g: api/v1/ref?entity=codeX,codeY&entity2=codeZ&entity3
+ ///
+ /// The optional list of reference data names.
+ /// The optional .
+ /// The .
+ /// A .
+ /// The reference data objects will need to be manually extracted from the corresponding response content.
+ Task GetNamedAsync(string[] names, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
}
\ No newline at end of file
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/ITransactionAgent.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/ITransactionAgent.cs
index 108593608..e52aa5f74 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/ITransactionAgent.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/ITransactionAgent.cs
@@ -2,35 +2,21 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Net.Http;
-using System.Threading;
-using System.Threading.Tasks;
-using CoreEx.Configuration;
-using CoreEx.Entities;
-using CoreEx.Http;
-using CoreEx.Json;
-using Microsoft.Extensions.Logging;
-using Cdr.Banking.Common.Entities;
-using RefDataNamespace = Cdr.Banking.Common.Entities;
+namespace Cdr.Banking.Common.Agents;
-namespace Cdr.Banking.Common.Agents
+///
+/// Defines the HTTP agent.
+///
+public partial interface ITransactionAgent
{
///
- /// Defines the HTTP agent.
+ /// Get transaction for account.
///
- public partial interface ITransactionAgent
- {
- ///
- /// Get transaction for account.
- ///
- /// The Account Id.
- /// The Args (see ).
- /// The .
- /// The optional .
- /// The .
- /// A .
- Task> GetTransactionsAsync(string? accountId, TransactionArgs? args, PagingArgs? paging = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
- }
+ /// The Account Id.
+ /// The Args (see ).
+ /// The .
+ /// The optional .
+ /// The .
+ /// A .
+ Task> GetTransactionsAsync(string? accountId, TransactionArgs? args, PagingArgs? paging = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default);
}
\ No newline at end of file
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/ReferenceDataAgent.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/ReferenceDataAgent.cs
index 7b8d09c0e..877fb7d7f 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/ReferenceDataAgent.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/ReferenceDataAgent.cs
@@ -2,65 +2,52 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Net.Http;
-using System.Threading;
-using System.Threading.Tasks;
-using CoreEx.Entities;
-using CoreEx.Http;
-using CoreEx.Json;
-using CoreEx.RefData;
-using Cdr.Banking.Common.Entities;
-using RefDataNamespace = Cdr.Banking.Common.Entities;
+namespace Cdr.Banking.Common.Agents;
-namespace Cdr.Banking.Common.Agents
+///
+/// Provides the ReferenceData HTTP agent.
+///
+public partial class ReferenceDataAgent : TypedHttpClientBase, IReferenceDataAgent
{
///
- /// Provides the ReferenceData HTTP agent.
+ /// Initializes a new instance of the class.
///
- public partial class ReferenceDataAgent : TypedHttpClientBase, IReferenceDataAgent
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// The underlying .
- /// The optional .
- /// The optional .
- public ReferenceDataAgent(HttpClient client, IJsonSerializer? jsonSerializer = null, CoreEx.ExecutionContext? executionContext = null) : base(client, jsonSerializer, executionContext) { }
+ /// The underlying .
+ /// The optional .
+ /// The optional .
+ public ReferenceDataAgent(HttpClient client, IJsonSerializer? jsonSerializer = null, CoreEx.ExecutionContext? executionContext = null) : base(client, jsonSerializer, executionContext) { }
- ///
- public Task> OpenStatusGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => GetAsync("api/v1/ref/openstatuses", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("args", args!, HttpArgType.FromUriUseProperties)), cancellationToken);
+ ///
+ public Task> OpenStatusGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => GetAsync("api/v1/ref/openstatuses", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("args", args!, HttpArgType.FromUriUseProperties)), cancellationToken);
- ///
- public Task> ProductCategoryGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => GetAsync("api/v1/ref/productcategories", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("args", args!, HttpArgType.FromUriUseProperties)), cancellationToken);
+ ///
+ public Task> ProductCategoryGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => GetAsync("api/v1/ref/productcategories", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("args", args!, HttpArgType.FromUriUseProperties)), cancellationToken);
- ///
- public Task> AccountUTypeGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => GetAsync("api/v1/ref/accountutypes", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("args", args!, HttpArgType.FromUriUseProperties)), cancellationToken);
+ ///
+ public Task> AccountUTypeGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => GetAsync("api/v1/ref/accountutypes", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("args", args!, HttpArgType.FromUriUseProperties)), cancellationToken);
- ///
- public Task> MaturityInstructionsGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => GetAsync("api/v1/ref/maturityinstructions", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("args", args!, HttpArgType.FromUriUseProperties)), cancellationToken);
+ ///
+ public Task> MaturityInstructionsGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => GetAsync("api/v1/ref/maturityinstructions", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("args", args!, HttpArgType.FromUriUseProperties)), cancellationToken);
- ///
- public Task> TransactionTypeGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => GetAsync("api/v1/ref/transactiontypes", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("args", args!, HttpArgType.FromUriUseProperties)), cancellationToken);
+ ///
+ public Task> TransactionTypeGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => GetAsync("api/v1/ref/transactiontypes", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("args", args!, HttpArgType.FromUriUseProperties)), cancellationToken);
- ///
- public Task> TransactionStatusGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => GetAsync("api/v1/ref/transactionstatuses", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("args", args!, HttpArgType.FromUriUseProperties)), cancellationToken);
+ ///
+ public Task> TransactionStatusGetAllAsync(ReferenceDataFilter? args = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => GetAsync("api/v1/ref/transactionstatuses", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("args", args!, HttpArgType.FromUriUseProperties)), cancellationToken);
- ///
- public Task GetNamedAsync(string[] names, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- {
- var ro = requestOptions ?? new HttpRequestOptions();
- if (names != null)
- ro.UrlQueryString += string.Join("&", names);
-
- return GetAsync("api/v1/ref", ro, null, cancellationToken);
- }
+ ///
+ public Task GetNamedAsync(string[] names, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ {
+ var ro = requestOptions ?? new HttpRequestOptions();
+ if (names != null)
+ ro.UrlQueryString += string.Join("&", names);
+
+ return GetAsync("api/v1/ref", ro, null, cancellationToken);
}
}
\ No newline at end of file
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/TransactionAgent.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/TransactionAgent.cs
index b2e3be7c8..2b21ac33c 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/TransactionAgent.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Agents/Generated/TransactionAgent.cs
@@ -2,34 +2,22 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Net.Http;
-using System.Threading;
-using System.Threading.Tasks;
-using CoreEx.Entities;
-using CoreEx.Http;
-using CoreEx.Json;
-using Cdr.Banking.Common.Entities;
-using RefDataNamespace = Cdr.Banking.Common.Entities;
+namespace Cdr.Banking.Common.Agents;
-namespace Cdr.Banking.Common.Agents
+///
+/// Provides the HTTP agent.
+///
+public partial class TransactionAgent : TypedHttpClientBase, ITransactionAgent
{
///
- /// Provides the HTTP agent.
+ /// Initializes a new instance of the class.
///
- public partial class TransactionAgent : TypedHttpClientBase, ITransactionAgent
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// The underlying .
- /// The optional .
- /// The optional .
- public TransactionAgent(HttpClient client, IJsonSerializer? jsonSerializer = null, CoreEx.ExecutionContext? executionContext = null) : base(client, jsonSerializer, executionContext) { }
+ /// The underlying .
+ /// The optional .
+ /// The optional .
+ public TransactionAgent(HttpClient client, IJsonSerializer? jsonSerializer = null, CoreEx.ExecutionContext? executionContext = null) : base(client, jsonSerializer, executionContext) { }
- ///
- public Task> GetTransactionsAsync(string? accountId, TransactionArgs? args, PagingArgs? paging = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => GetAsync("api/v1/banking/accounts/{accountId}/transactions", requestOptions: requestOptions.IncludePaging(paging), args: HttpArgs.Create(new HttpArg("accountId", accountId), new HttpArg("args", args, HttpArgType.FromUriUseProperties)), cancellationToken: cancellationToken);
- }
+ ///
+ public Task> GetTransactionsAsync(string? accountId, TransactionArgs? args, PagingArgs? paging = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => GetAsync("api/v1/banking/accounts/{accountId}/transactions", requestOptions: requestOptions.IncludePaging(paging), args: HttpArgs.Create(new HttpArg("accountId", accountId), new HttpArg("args", args, HttpArgType.FromUriUseProperties)), cancellationToken: cancellationToken);
}
\ No newline at end of file
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Cdr.Banking.Common.csproj b/samples/Cdr.Banking/Cdr.Banking.Common/Cdr.Banking.Common.csproj
index ecec905fd..ac6240eab 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Cdr.Banking.Common.csproj
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Cdr.Banking.Common.csproj
@@ -2,6 +2,8 @@
netstandard2.1
enable
+ Preview
+ true
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/Account.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/Account.cs
index 38366f6f1..9b737da68 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/Account.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/Account.cs
@@ -2,92 +2,85 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Text.Json.Serialization;
-using CoreEx.Entities;
+namespace Cdr.Banking.Common.Entities;
-namespace Cdr.Banking.Common.Entities
+///
+/// Represents the Account entity.
+///
+public partial class Account : IIdentifier
{
///
- /// Represents the Account entity.
+ /// Gets or sets the identifier.
///
- public partial class Account : IIdentifier
- {
- ///
- /// Gets or sets the identifier.
- ///
- [JsonPropertyName("accountId")]
- public string? Id { get; set; }
+ [JsonPropertyName("accountId")]
+ public string? Id { get; set; }
- ///
- /// Gets or sets the Creation Date.
- ///
- public DateTime CreationDate { get; set; }
-
- ///
- /// Gets or sets the Display Name.
- ///
- public string? DisplayName { get; set; }
+ ///
+ /// Gets or sets the Creation Date.
+ ///
+ public DateTime CreationDate { get; set; }
- ///
- /// Gets or sets the Nickname.
- ///
- public string? Nickname { get; set; }
+ ///
+ /// Gets or sets the Display Name.
+ ///
+ public string? DisplayName { get; set; }
- ///
- /// Gets or sets the Open Status code.
- ///
- public string? OpenStatus { get; set; }
+ ///
+ /// Gets or sets the Nickname.
+ ///
+ public string? Nickname { get; set; }
- ///
- /// Indicates whether Is Owned.
- ///
- public bool IsOwned { get; set; }
+ ///
+ /// Gets or sets the Open Status code.
+ ///
+ public string? OpenStatus { get; set; }
- ///
- /// Gets or sets the Masked Number.
- ///
- public string? MaskedNumber { get; set; }
+ ///
+ /// Indicates whether Is Owned.
+ ///
+ public bool IsOwned { get; set; }
- ///
- /// Gets or sets the Product Category code.
- ///
- public string? ProductCategory { get; set; }
+ ///
+ /// Gets or sets the Masked Number.
+ ///
+ public string? MaskedNumber { get; set; }
- ///
- /// Gets or sets the Product Name.
- ///
- public string? ProductName { get; set; }
- }
+ ///
+ /// Gets or sets the Product Category code.
+ ///
+ public string? ProductCategory { get; set; }
///
- /// Represents the Account collection.
+ /// Gets or sets the Product Name.
///
- public partial class AccountCollection : List { }
+ public string? ProductName { get; set; }
+}
+
+///
+/// Represents the Account collection.
+///
+public partial class AccountCollection : List { }
+///
+/// Represents the Account collection result.
+///
+public class AccountCollectionResult : CollectionResult
+{
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public AccountCollectionResult() { }
+
+ ///
+ /// Initializes a new instance of the class with .
+ ///
+ /// The .
+ public AccountCollectionResult(PagingArgs? paging) : base(paging) { }
+
///
- /// Represents the Account collection result.
+ /// Initializes a new instance of the class with to add.
///
- public class AccountCollectionResult : CollectionResult
- {
- ///
- /// Initializes a new instance of the class.
- ///
- public AccountCollectionResult() { }
-
- ///
- /// Initializes a new instance of the class with .
- ///
- /// The .
- public AccountCollectionResult(PagingArgs? paging) : base(paging) { }
-
- ///
- /// Initializes a new instance of the class with to add.
- ///
- /// The items to add.
- /// The .
- public AccountCollectionResult(IEnumerable items, PagingArgs? paging = null) : base(paging) => Items.AddRange(items);
- }
-}
\ No newline at end of file
+ /// The items to add.
+ /// The .
+ public AccountCollectionResult(IEnumerable items, PagingArgs? paging = null) : base(paging) => Items.AddRange(items);
+}
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/AccountArgs.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/AccountArgs.cs
index b013b7ebd..4ae6f748e 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/AccountArgs.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/AccountArgs.cs
@@ -2,35 +2,28 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Text.Json.Serialization;
-using CoreEx.Entities;
+namespace Cdr.Banking.Common.Entities;
-namespace Cdr.Banking.Common.Entities
+///
+/// Represents the Account arguments entity.
+///
+public partial class AccountArgs
{
///
- /// Represents the Account arguments entity.
+ /// Gets or sets the Product Category code.
///
- public partial class AccountArgs
- {
- ///
- /// Gets or sets the Product Category code.
- ///
- [JsonPropertyName("product-category")]
- public string? ProductCategory { get; set; }
+ [JsonPropertyName("product-category")]
+ public string? ProductCategory { get; set; }
- ///
- /// Gets or sets the Open Status code.
- ///
- [JsonPropertyName("open-status")]
- public string? OpenStatus { get; set; }
+ ///
+ /// Gets or sets the Open Status code.
+ ///
+ [JsonPropertyName("open-status")]
+ public string? OpenStatus { get; set; }
- ///
- /// Indicates whether Is Owned.
- ///
- [JsonPropertyName("is-owned")]
- public bool? IsOwned { get; set; }
- }
-}
\ No newline at end of file
+ ///
+ /// Indicates whether Is Owned.
+ ///
+ [JsonPropertyName("is-owned")]
+ public bool? IsOwned { get; set; }
+}
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/AccountDetail.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/AccountDetail.cs
index 8b1656ad2..12ed10370 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/AccountDetail.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/AccountDetail.cs
@@ -2,47 +2,40 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Text.Json.Serialization;
-using CoreEx.Entities;
+namespace Cdr.Banking.Common.Entities;
-namespace Cdr.Banking.Common.Entities
+///
+/// Represents the Account Detail entity.
+///
+public partial class AccountDetail : Account
{
///
- /// Represents the Account Detail entity.
+ /// Gets or sets the Bsb.
///
- public partial class AccountDetail : Account
- {
- ///
- /// Gets or sets the Bsb.
- ///
- public string? Bsb { get; set; }
+ public string? Bsb { get; set; }
- ///
- /// Gets or sets the Account Number.
- ///
- public string? AccountNumber { get; set; }
+ ///
+ /// Gets or sets the Account Number.
+ ///
+ public string? AccountNumber { get; set; }
- ///
- /// Gets or sets the Bundle Name.
- ///
- public string? BundleName { get; set; }
+ ///
+ /// Gets or sets the Bundle Name.
+ ///
+ public string? BundleName { get; set; }
- ///
- /// Gets or sets the Specific Account U Type code.
- ///
- public string? SpecificAccountUType { get; set; }
+ ///
+ /// Gets or sets the Specific Account U Type code.
+ ///
+ public string? SpecificAccountUType { get; set; }
- ///
- /// Gets or sets the Term Deposit.
- ///
- public TermDepositAccount? TermDeposit { get; set; }
+ ///
+ /// Gets or sets the Term Deposit.
+ ///
+ public TermDepositAccount? TermDeposit { get; set; }
- ///
- /// Gets or sets the Credit Card.
- ///
- public CreditCardAccount? CreditCard { get; set; }
- }
-}
\ No newline at end of file
+ ///
+ /// Gets or sets the Credit Card.
+ ///
+ public CreditCardAccount? CreditCard { get; set; }
+}
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/AccountUType.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/AccountUType.cs
index e1519663f..2399dafda 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/AccountUType.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/AccountUType.cs
@@ -2,22 +2,14 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Text.Json.Serialization;
-using CoreEx.Entities;
-using CoreEx.RefData;
+namespace Cdr.Banking.Common.Entities;
-namespace Cdr.Banking.Common.Entities
-{
- ///
- /// Represents the Account U Type entity.
- ///
- public partial class AccountUType : ReferenceDataBase { }
+///
+/// Represents the Account U Type entity.
+///
+public partial class AccountUType : ReferenceDataBase { }
- ///
- /// Represents the AccountUType collection.
- ///
- public partial class AccountUTypeCollection : List { }
-}
\ No newline at end of file
+///
+/// Represents the AccountUType collection.
+///
+public partial class AccountUTypeCollection : List { }
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/Balance.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/Balance.cs
index a6a15bff3..8afbb4db3 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/Balance.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/Balance.cs
@@ -2,55 +2,48 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Text.Json.Serialization;
-using CoreEx.Entities;
+namespace Cdr.Banking.Common.Entities;
-namespace Cdr.Banking.Common.Entities
+///
+/// Represents the Balance entity.
+///
+public partial class Balance : IIdentifier
{
///
- /// Represents the Balance entity.
+ /// Gets or sets the Account identifier.
///
- public partial class Balance : IIdentifier
- {
- ///
- /// Gets or sets the Account identifier.
- ///
- [JsonPropertyName("accountId")]
- public string? Id { get; set; }
-
- ///
- /// Gets or sets the Current Balance.
- ///
- [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
- public decimal CurrentBalance { get; set; }
-
- ///
- /// Gets or sets the Available Balance.
- ///
- [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
- public decimal AvailableBalance { get; set; }
-
- ///
- /// Gets or sets the Credit Limit.
- ///
- public decimal CreditLimit { get; set; }
-
- ///
- /// Gets or sets the Amortised Limit.
- ///
- public decimal AmortisedLimit { get; set; }
-
- ///
- /// Gets or sets the Currency.
- ///
- public string? Currency { get; set; }
-
- ///
- /// Gets or sets the Purses.
- ///
- public BalancePurseCollection? Purses { get; set; }
- }
-}
\ No newline at end of file
+ [JsonPropertyName("accountId")]
+ public string? Id { get; set; }
+
+ ///
+ /// Gets or sets the Current Balance.
+ ///
+ [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
+ public decimal CurrentBalance { get; set; }
+
+ ///
+ /// Gets or sets the Available Balance.
+ ///
+ [JsonIgnore(Condition = JsonIgnoreCondition.Never)]
+ public decimal AvailableBalance { get; set; }
+
+ ///
+ /// Gets or sets the Credit Limit.
+ ///
+ public decimal CreditLimit { get; set; }
+
+ ///
+ /// Gets or sets the Amortised Limit.
+ ///
+ public decimal AmortisedLimit { get; set; }
+
+ ///
+ /// Gets or sets the Currency.
+ ///
+ public string? Currency { get; set; }
+
+ ///
+ /// Gets or sets the Purses.
+ ///
+ public BalancePurseCollection? Purses { get; set; }
+}
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/BalancePurse.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/BalancePurse.cs
index 1a75eef82..d3d34fe50 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/BalancePurse.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/BalancePurse.cs
@@ -2,32 +2,25 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Text.Json.Serialization;
-using CoreEx.Entities;
+namespace Cdr.Banking.Common.Entities;
-namespace Cdr.Banking.Common.Entities
+///
+/// Represents the Balance Purse entity.
+///
+public partial class BalancePurse
{
///
- /// Represents the Balance Purse entity.
+ /// Gets or sets the Amount.
///
- public partial class BalancePurse
- {
- ///
- /// Gets or sets the Amount.
- ///
- public decimal Amount { get; set; }
-
- ///
- /// Gets or sets the Currency.
- ///
- public string? Currency { get; set; }
- }
+ public decimal Amount { get; set; }
///
- /// Represents the BalancePurse collection.
+ /// Gets or sets the Currency.
///
- public partial class BalancePurseCollection : List { }
-}
\ No newline at end of file
+ public string? Currency { get; set; }
+}
+
+///
+/// Represents the BalancePurse collection.
+///
+public partial class BalancePurseCollection : List { }
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/CreditCardAccount.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/CreditCardAccount.cs
index 941b0057a..1c217b584 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/CreditCardAccount.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/CreditCardAccount.cs
@@ -2,37 +2,30 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Text.Json.Serialization;
-using CoreEx.Entities;
+namespace Cdr.Banking.Common.Entities;
-namespace Cdr.Banking.Common.Entities
+///
+/// Represents the Credit Card Account entity.
+///
+public partial class CreditCardAccount
{
///
- /// Represents the Credit Card Account entity.
+ /// Gets or sets the Min Payment Amount.
///
- public partial class CreditCardAccount
- {
- ///
- /// Gets or sets the Min Payment Amount.
- ///
- public decimal MinPaymentAmount { get; set; }
+ public decimal MinPaymentAmount { get; set; }
- ///
- /// Gets or sets the Payment Due Amount.
- ///
- public decimal PaymentDueAmount { get; set; }
+ ///
+ /// Gets or sets the Payment Due Amount.
+ ///
+ public decimal PaymentDueAmount { get; set; }
- ///
- /// Gets or sets the Payment Currency.
- ///
- public string? PaymentCurrency { get; set; }
+ ///
+ /// Gets or sets the Payment Currency.
+ ///
+ public string? PaymentCurrency { get; set; }
- ///
- /// Gets or sets the Payment Due Date.
- ///
- public DateTime PaymentDueDate { get; set; }
- }
-}
\ No newline at end of file
+ ///
+ /// Gets or sets the Payment Due Date.
+ ///
+ public DateTime PaymentDueDate { get; set; }
+}
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/MaturityInstructions.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/MaturityInstructions.cs
index 5d2176ae2..541eb5a92 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/MaturityInstructions.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/MaturityInstructions.cs
@@ -2,22 +2,14 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Text.Json.Serialization;
-using CoreEx.Entities;
-using CoreEx.RefData;
+namespace Cdr.Banking.Common.Entities;
-namespace Cdr.Banking.Common.Entities
-{
- ///
- /// Represents the Maturity Instructions entity.
- ///
- public partial class MaturityInstructions : ReferenceDataBase { }
+///
+/// Represents the Maturity Instructions entity.
+///
+public partial class MaturityInstructions : ReferenceDataBase { }
- ///
- /// Represents the MaturityInstructions collection.
- ///
- public partial class MaturityInstructionsCollection : List { }
-}
\ No newline at end of file
+///
+/// Represents the MaturityInstructions collection.
+///
+public partial class MaturityInstructionsCollection : List { }
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/OpenStatus.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/OpenStatus.cs
index d7d4bca2c..6e879c720 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/OpenStatus.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/OpenStatus.cs
@@ -2,22 +2,14 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Text.Json.Serialization;
-using CoreEx.Entities;
-using CoreEx.RefData;
+namespace Cdr.Banking.Common.Entities;
-namespace Cdr.Banking.Common.Entities
-{
- ///
- /// Represents the Open Status entity.
- ///
- public partial class OpenStatus : ReferenceDataBase { }
+///
+/// Represents the Open Status entity.
+///
+public partial class OpenStatus : ReferenceDataBase { }
- ///
- /// Represents the OpenStatus collection.
- ///
- public partial class OpenStatusCollection : List { }
-}
\ No newline at end of file
+///
+/// Represents the OpenStatus collection.
+///
+public partial class OpenStatusCollection : List { }
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/ProductCategory.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/ProductCategory.cs
index 755dca441..2eda9271b 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/ProductCategory.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/ProductCategory.cs
@@ -2,22 +2,14 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Text.Json.Serialization;
-using CoreEx.Entities;
-using CoreEx.RefData;
+namespace Cdr.Banking.Common.Entities;
-namespace Cdr.Banking.Common.Entities
-{
- ///
- /// Represents the Product Category entity.
- ///
- public partial class ProductCategory : ReferenceDataBase { }
+///
+/// Represents the Product Category entity.
+///
+public partial class ProductCategory : ReferenceDataBase { }
- ///
- /// Represents the ProductCategory collection.
- ///
- public partial class ProductCategoryCollection : List { }
-}
\ No newline at end of file
+///
+/// Represents the ProductCategory collection.
+///
+public partial class ProductCategoryCollection : List { }
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/TermDepositAccount.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/TermDepositAccount.cs
index a7b68a022..983a441b9 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/TermDepositAccount.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/TermDepositAccount.cs
@@ -2,42 +2,35 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Text.Json.Serialization;
-using CoreEx.Entities;
+namespace Cdr.Banking.Common.Entities;
-namespace Cdr.Banking.Common.Entities
+///
+/// Represents the Term Deposit Account entity.
+///
+public partial class TermDepositAccount
{
///
- /// Represents the Term Deposit Account entity.
+ /// Gets or sets the Lodgement Date.
///
- public partial class TermDepositAccount
- {
- ///
- /// Gets or sets the Lodgement Date.
- ///
- public DateTime LodgementDate { get; set; }
+ public DateTime LodgementDate { get; set; }
- ///
- /// Gets or sets the Maturity Date.
- ///
- public DateTime MaturityDate { get; set; }
+ ///
+ /// Gets or sets the Maturity Date.
+ ///
+ public DateTime MaturityDate { get; set; }
- ///
- /// Gets or sets the Maturity Amount.
- ///
- public decimal MaturityAmount { get; set; }
+ ///
+ /// Gets or sets the Maturity Amount.
+ ///
+ public decimal MaturityAmount { get; set; }
- ///
- /// Gets or sets the Maturity Currency.
- ///
- public string? MaturityCurrency { get; set; }
+ ///
+ /// Gets or sets the Maturity Currency.
+ ///
+ public string? MaturityCurrency { get; set; }
- ///
- /// Gets or sets the Maturity Instructions code.
- ///
- public string? MaturityInstructions { get; set; }
- }
-}
\ No newline at end of file
+ ///
+ /// Gets or sets the Maturity Instructions code.
+ ///
+ public string? MaturityInstructions { get; set; }
+}
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/Transaction.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/Transaction.cs
index a9d826b2b..04deaf297 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/Transaction.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/Transaction.cs
@@ -2,127 +2,120 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Text.Json.Serialization;
-using CoreEx.Entities;
+namespace Cdr.Banking.Common.Entities;
-namespace Cdr.Banking.Common.Entities
+///
+/// Represents the Transaction entity.
+///
+public partial class Transaction : IIdentifier
{
///
- /// Represents the Transaction entity.
- ///
- public partial class Transaction : IIdentifier
- {
- ///
- /// Gets or sets the Account identifier.
- ///
- [JsonPropertyName("transactionId")]
- public string? Id { get; set; }
-
- ///
- /// Gets or sets the Account Id.
- ///
- public string? AccountId { get; set; }
-
- ///
- /// Indicates whether Is Detail Available.
- ///
- public bool IsDetailAvailable { get; set; }
-
- ///
- /// Gets or sets the Type code.
- ///
- public string? Type { get; set; }
-
- ///
- /// Gets or sets the Status code.
- ///
- public string? Status { get; set; }
-
- ///
- /// Gets or sets the Description.
- ///
- public string? Description { get; set; }
-
- ///
- /// Gets or sets the Posting Date Time.
- ///
- public DateTime PostingDateTime { get; set; }
-
- ///
- /// Gets or sets the Execution Date Time.
- ///
- public DateTime ExecutionDateTime { get; set; }
-
- ///
- /// Gets or sets the Amount.
- ///
- public decimal Amount { get; set; }
-
- ///
- /// Gets or sets the Currency.
- ///
- public string? Currency { get; set; }
-
- ///
- /// Gets or sets the Reference.
- ///
- public string? Reference { get; set; }
-
- ///
- /// Gets or sets the Merchant Name.
- ///
- public string? MerchantName { get; set; }
-
- ///
- /// Gets or sets the Merchant Category Code.
- ///
- public string? MerchantCategoryCode { get; set; }
-
- ///
- /// Gets or sets the Biller Code.
- ///
- public string? BillerCode { get; set; }
-
- ///
- /// Gets or sets the Biller Name.
- ///
- public string? BillerName { get; set; }
-
- ///
- /// Gets or sets the Apca Number.
- ///
- public string? ApcaNumber { get; set; }
- }
-
- ///
- /// Represents the Transaction collection.
- ///
- public partial class TransactionCollection : List { }
-
- ///
- /// Represents the Transaction collection result.
- ///
- public class TransactionCollectionResult : CollectionResult
- {
- ///
- /// Initializes a new instance of the class.
- ///
- public TransactionCollectionResult() { }
-
- ///
- /// Initializes a new instance of the class with .
- ///
- /// The .
- public TransactionCollectionResult(PagingArgs? paging) : base(paging) { }
-
- ///
- /// Initializes a new instance of the class with to add.
- ///
- /// The items to add.
- /// The .
- public TransactionCollectionResult(IEnumerable items, PagingArgs? paging = null) : base(paging) => Items.AddRange(items);
- }
-}
\ No newline at end of file
+ /// Gets or sets the Account identifier.
+ ///
+ [JsonPropertyName("transactionId")]
+ public string? Id { get; set; }
+
+ ///
+ /// Gets or sets the Account Id.
+ ///
+ public string? AccountId { get; set; }
+
+ ///
+ /// Indicates whether Is Detail Available.
+ ///
+ public bool IsDetailAvailable { get; set; }
+
+ ///
+ /// Gets or sets the Type code.
+ ///
+ public string? Type { get; set; }
+
+ ///
+ /// Gets or sets the Status code.
+ ///
+ public string? Status { get; set; }
+
+ ///
+ /// Gets or sets the Description.
+ ///
+ public string? Description { get; set; }
+
+ ///
+ /// Gets or sets the Posting Date Time.
+ ///
+ public DateTime PostingDateTime { get; set; }
+
+ ///
+ /// Gets or sets the Execution Date Time.
+ ///
+ public DateTime ExecutionDateTime { get; set; }
+
+ ///
+ /// Gets or sets the Amount.
+ ///
+ public decimal Amount { get; set; }
+
+ ///
+ /// Gets or sets the Currency.
+ ///
+ public string? Currency { get; set; }
+
+ ///
+ /// Gets or sets the Reference.
+ ///
+ public string? Reference { get; set; }
+
+ ///
+ /// Gets or sets the Merchant Name.
+ ///
+ public string? MerchantName { get; set; }
+
+ ///
+ /// Gets or sets the Merchant Category Code.
+ ///
+ public string? MerchantCategoryCode { get; set; }
+
+ ///
+ /// Gets or sets the Biller Code.
+ ///
+ public string? BillerCode { get; set; }
+
+ ///
+ /// Gets or sets the Biller Name.
+ ///
+ public string? BillerName { get; set; }
+
+ ///
+ /// Gets or sets the Apca Number.
+ ///
+ public string? ApcaNumber { get; set; }
+}
+
+///
+/// Represents the Transaction collection.
+///
+public partial class TransactionCollection : List { }
+
+///
+/// Represents the Transaction collection result.
+///
+public class TransactionCollectionResult : CollectionResult
+{
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public TransactionCollectionResult() { }
+
+ ///
+ /// Initializes a new instance of the class with .
+ ///
+ /// The .
+ public TransactionCollectionResult(PagingArgs? paging) : base(paging) { }
+
+ ///
+ /// Initializes a new instance of the class with to add.
+ ///
+ /// The items to add.
+ /// The .
+ public TransactionCollectionResult(IEnumerable items, PagingArgs? paging = null) : base(paging) => Items.AddRange(items);
+}
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/TransactionArgs.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/TransactionArgs.cs
index 697bb61b7..6b1332eb8 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/TransactionArgs.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/TransactionArgs.cs
@@ -2,47 +2,40 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Text.Json.Serialization;
-using CoreEx.Entities;
+namespace Cdr.Banking.Common.Entities;
-namespace Cdr.Banking.Common.Entities
+///
+/// Represents the Transaction Arguments entity.
+///
+public partial class TransactionArgs
{
///
- /// Represents the Transaction Arguments entity.
+ /// Gets or sets the From (oldest time).
///
- public partial class TransactionArgs
- {
- ///
- /// Gets or sets the From (oldest time).
- ///
- [JsonPropertyName("oldest-time")]
- public DateTime? FromDate { get; set; }
+ [JsonPropertyName("oldest-time")]
+ public DateTime? FromDate { get; set; }
- ///
- /// Gets or sets the To (newest time).
- ///
- [JsonPropertyName("newest-time")]
- public DateTime? ToDate { get; set; }
+ ///
+ /// Gets or sets the To (newest time).
+ ///
+ [JsonPropertyName("newest-time")]
+ public DateTime? ToDate { get; set; }
- ///
- /// Gets or sets the Min Amount.
- ///
- [JsonPropertyName("min-amount")]
- public decimal? MinAmount { get; set; }
+ ///
+ /// Gets or sets the Min Amount.
+ ///
+ [JsonPropertyName("min-amount")]
+ public decimal? MinAmount { get; set; }
- ///
- /// Gets or sets the Max Amount.
- ///
- [JsonPropertyName("max-amount")]
- public decimal? MaxAmount { get; set; }
+ ///
+ /// Gets or sets the Max Amount.
+ ///
+ [JsonPropertyName("max-amount")]
+ public decimal? MaxAmount { get; set; }
- ///
- /// Gets or sets the Text.
- ///
- [JsonPropertyName("text")]
- public string? Text { get; set; }
- }
-}
\ No newline at end of file
+ ///
+ /// Gets or sets the Text.
+ ///
+ [JsonPropertyName("text")]
+ public string? Text { get; set; }
+}
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/TransactionStatus.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/TransactionStatus.cs
index 4832a473f..b70398058 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/TransactionStatus.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/TransactionStatus.cs
@@ -2,22 +2,14 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Text.Json.Serialization;
-using CoreEx.Entities;
-using CoreEx.RefData;
+namespace Cdr.Banking.Common.Entities;
-namespace Cdr.Banking.Common.Entities
-{
- ///
- /// Represents the Transaction Status entity.
- ///
- public partial class TransactionStatus : ReferenceDataBase { }
+///
+/// Represents the Transaction Status entity.
+///
+public partial class TransactionStatus : ReferenceDataBase { }
- ///
- /// Represents the TransactionStatus collection.
- ///
- public partial class TransactionStatusCollection : List { }
-}
\ No newline at end of file
+///
+/// Represents the TransactionStatus collection.
+///
+public partial class TransactionStatusCollection : List { }
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/TransactionType.cs b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/TransactionType.cs
index 9b13dbe2a..a1aaad6df 100644
--- a/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/TransactionType.cs
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/Entities/Generated/TransactionType.cs
@@ -2,22 +2,14 @@
* This file is automatically generated; any changes will be lost.
*/
-using System;
-using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Text.Json.Serialization;
-using CoreEx.Entities;
-using CoreEx.RefData;
+namespace Cdr.Banking.Common.Entities;
-namespace Cdr.Banking.Common.Entities
-{
- ///
- /// Represents the Transaction Type entity.
- ///
- public partial class TransactionType : ReferenceDataBase { }
+///
+/// Represents the Transaction Type entity.
+///
+public partial class TransactionType : ReferenceDataBase { }
- ///
- /// Represents the TransactionType collection.
- ///
- public partial class TransactionTypeCollection : List { }
-}
\ No newline at end of file
+///
+/// Represents the TransactionType collection.
+///
+public partial class TransactionTypeCollection : List { }
diff --git a/samples/Cdr.Banking/Cdr.Banking.Common/GlobalUsings.cs b/samples/Cdr.Banking/Cdr.Banking.Common/GlobalUsings.cs
new file mode 100644
index 000000000..ab4cfd039
--- /dev/null
+++ b/samples/Cdr.Banking/Cdr.Banking.Common/GlobalUsings.cs
@@ -0,0 +1,13 @@
+global using CoreEx.Entities;
+global using CoreEx.Http;
+global using CoreEx.Json;
+global using CoreEx.RefData;
+global using System;
+global using System.Collections.Generic;
+global using System.Diagnostics.CodeAnalysis;
+global using System.Text.Json.Serialization;
+global using System.Net.Http;
+global using System.Threading;
+global using System.Threading.Tasks;
+global using Cdr.Banking.Common.Entities;
+global using RefDataNamespace = Cdr.Banking.Common.Entities;
\ No newline at end of file
diff --git a/samples/Demo/Beef.Demo.Business/Data/Model/Generated/Person.cs b/samples/Demo/Beef.Demo.Business/Data/Model/Generated/Person.cs
index 510831c0c..b5ab8052e 100644
--- a/samples/Demo/Beef.Demo.Business/Data/Model/Generated/Person.cs
+++ b/samples/Demo/Beef.Demo.Business/Data/Model/Generated/Person.cs
@@ -5,42 +5,42 @@
#nullable enable
#pragma warning disable
-namespace Beef.Demo.Business.Data.Model
+namespace Beef.Demo.Business.Data.Model;
+
+///
+/// Represents the Person model.
+///
+public partial class Person : IPartitionKey
{
///
- /// Represents the Person model.
+ /// Gets or sets the User Name.
+ ///
+ public string? UserName { get; set; }
+
+ ///
+ /// Gets or sets the First Name.
+ ///
+ public string? FirstName { get; set; }
+
+ ///
+ /// Gets or sets the Last Name.
///
- public partial class Person : IPartitionKey
- {
- ///
- /// Gets or sets the User Name.
- ///
- public string? UserName { get; set; }
-
- ///
- /// Gets or sets the First Name.
- ///
- public string? FirstName { get; set; }
-
- ///
- /// Gets or sets the Last Name.
- ///
- public string? LastName { get; set; }
+ public string? LastName { get; set; }
- ///
- /// Creates the .
- ///
- /// The partition key.
- /// The .
- public static string? CreatePartitionKey(string? userName) => CompositeKey.Create(userName).ToString();
-
- ///
- /// Gets the Partition Key (consists of the following property(s): ).
- ///
- [JsonIgnore]
- public string? PartitionKey => CreatePartitionKey(UserName);
- }
+ ///
+ /// Creates the .
+ ///
+ /// The partition key.
+ /// The .
+ public static string? CreatePartitionKey(string? userName) => CompositeKey.Create(userName).ToString();
+
+ ///
+ /// Gets the Partition Key (consists of the following property(s): ).
+ ///
+ [JsonIgnore]
+ public string? PartitionKey => CreatePartitionKey(UserName);
}
+
#pragma warning restore
#nullable restore
\ No newline at end of file
diff --git a/samples/Demo/Beef.Demo.Business/Data/Model/Generated/PlaceInfo.cs b/samples/Demo/Beef.Demo.Business/Data/Model/Generated/PlaceInfo.cs
index 9aa67ed3b..fde64a290 100644
--- a/samples/Demo/Beef.Demo.Business/Data/Model/Generated/PlaceInfo.cs
+++ b/samples/Demo/Beef.Demo.Business/Data/Model/Generated/PlaceInfo.cs
@@ -5,31 +5,31 @@
#nullable enable
#pragma warning disable
-namespace Beef.Demo.Business.Data.Model
+namespace Beef.Demo.Business.Data.Model;
+
+///
+/// Represents the Place Info model.
+///
+public partial class PlaceInfo
{
///
- /// Represents the Place Info model.
+ /// Gets or sets the Name.
///
- public partial class PlaceInfo
- {
- ///
- /// Gets or sets the Name.
- ///
- [JsonPropertyName("place name")]
- public string? Name { get; set; }
-
- ///
- /// Gets or sets the Post Code.
- ///
- [JsonPropertyName("post code")]
- public string? PostCode { get; set; }
- }
+ [JsonPropertyName("place name")]
+ public string? Name { get; set; }
///
- /// Represents the collection.
+ /// Gets or sets the Post Code.
///
- public partial class PlaceInfoCollection : List { }
+ [JsonPropertyName("post code")]
+ public string? PostCode { get; set; }
}
+///
+/// Represents the collection.
+///
+public partial class PlaceInfoCollection : List { }
+
+
#pragma warning restore
#nullable restore
\ No newline at end of file
diff --git a/samples/Demo/Beef.Demo.Business/Data/Model/Generated/PostalInfo.cs b/samples/Demo/Beef.Demo.Business/Data/Model/Generated/PostalInfo.cs
index 01defe7bb..7ab740e66 100644
--- a/samples/Demo/Beef.Demo.Business/Data/Model/Generated/PostalInfo.cs
+++ b/samples/Demo/Beef.Demo.Business/Data/Model/Generated/PostalInfo.cs
@@ -5,43 +5,43 @@
#nullable enable
#pragma warning disable
-namespace Beef.Demo.Business.Data.Model
+namespace Beef.Demo.Business.Data.Model;
+
+///
+/// Represents the Postal Info model.
+///
+public partial class PostalInfo : IETag
{
///
- /// Represents the Postal Info model.
+ /// Gets or sets the Country code.
+ ///
+ [JsonPropertyName("country abbreviation")]
+ public string? Country { get; set; }
+
+ ///
+ /// Gets or sets the City.
+ ///
+ [JsonPropertyName("place name")]
+ public string? City { get; set; }
+
+ ///
+ /// Gets or sets the State.
///
- public partial class PostalInfo : IETag
- {
- ///
- /// Gets or sets the Country code.
- ///
- [JsonPropertyName("country abbreviation")]
- public string? Country { get; set; }
-
- ///
- /// Gets or sets the City.
- ///
- [JsonPropertyName("place name")]
- public string? City { get; set; }
-
- ///
- /// Gets or sets the State.
- ///
- [JsonPropertyName("state abbreviation")]
- public string? State { get; set; }
-
- ///
- /// Gets or sets the Places.
- ///
- public PlaceInfoCollection? Places { get; set; }
-
- ///
- /// Gets or sets the ETag.
- ///
- [JsonIgnore]
- public string? ETag { get; set; }
- }
+ [JsonPropertyName("state abbreviation")]
+ public string? State { get; set; }
+
+ ///
+ /// Gets or sets the Places.
+ ///
+ public PlaceInfoCollection? Places { get; set; }
+
+ ///
+ /// Gets or sets the ETag.
+ ///
+ [JsonIgnore]
+ public string? ETag { get; set; }
}
+
#pragma warning restore
#nullable restore
\ No newline at end of file
diff --git a/samples/Demo/Beef.Demo.Business/Data/Model/Generated/PowerSource.cs b/samples/Demo/Beef.Demo.Business/Data/Model/Generated/PowerSource.cs
index 205126a6a..b09953254 100644
--- a/samples/Demo/Beef.Demo.Business/Data/Model/Generated/PowerSource.cs
+++ b/samples/Demo/Beef.Demo.Business/Data/Model/Generated/PowerSource.cs
@@ -5,24 +5,24 @@
#nullable enable
#pragma warning disable
-namespace Beef.Demo.Business.Data.Model
-{
- ///
- /// Represents the Power Source model.
- ///
- public partial class PowerSource : ReferenceDataBase
- {
- ///
- /// Gets or sets the Additional Info.
- ///
- public string? AdditionalInfo { get; set; }
- }
+namespace Beef.Demo.Business.Data.Model;
+///
+/// Represents the Power Source model.
+///
+public partial class PowerSource : ReferenceDataBase
+{
///
- /// Represents the collection.
+ /// Gets or sets the Additional Info.
///
- public partial class PowerSourceCollection : List { }
+ public string? AdditionalInfo { get; set; }
}
+///
+/// Represents the collection.
+///
+public partial class PowerSourceCollection : List { }
+
+
#pragma warning restore
#nullable restore
\ No newline at end of file
diff --git a/samples/Demo/Beef.Demo.Business/Data/Model/Generated/Product.cs b/samples/Demo/Beef.Demo.Business/Data/Model/Generated/Product.cs
index 8ebb7422e..65101d132 100644
--- a/samples/Demo/Beef.Demo.Business/Data/Model/Generated/Product.cs
+++ b/samples/Demo/Beef.Demo.Business/Data/Model/Generated/Product.cs
@@ -5,29 +5,29 @@
#nullable enable
#pragma warning disable
-namespace Beef.Demo.Business.Data.Model
+namespace Beef.Demo.Business.Data.Model;
+
+///
+/// Represents the Product model.
+///
+public partial class Product
{
///
- /// Represents the Product model.
+ /// Gets or sets the ID.
///
- public partial class Product
- {
- ///
- /// Gets or sets the ID.
- ///
- public int ID { get; set; }
+ public int ID { get; set; }
- ///
- /// Gets or sets the Name.
- ///
- public string? Name { get; set; }
+ ///
+ /// Gets or sets the Name.
+ ///
+ public string? Name { get; set; }
- ///
- /// Gets or sets the Description.
- ///
- public string? Description { get; set; }
- }
+ ///
+ /// Gets or sets the Description.
+ ///
+ public string? Description { get; set; }
}
+
#pragma warning restore
#nullable restore
\ No newline at end of file
diff --git a/samples/Demo/Beef.Demo.Business/Data/Model/Generated/RefDataPrimaryKey.cs b/samples/Demo/Beef.Demo.Business/Data/Model/Generated/RefDataPrimaryKey.cs
index 7472b8058..70faa6007 100644
--- a/samples/Demo/Beef.Demo.Business/Data/Model/Generated/RefDataPrimaryKey.cs
+++ b/samples/Demo/Beef.Demo.Business/Data/Model/Generated/RefDataPrimaryKey.cs
@@ -5,37 +5,37 @@
#nullable enable
#pragma warning disable
-namespace Beef.Demo.Business.Data.Model
+namespace Beef.Demo.Business.Data.Model;
+
+///
+/// Represents the Ref Data Primary Key model.
+///
+public partial class RefDataPrimaryKey : IPrimaryKey
{
///
- /// Represents the Ref Data Primary Key model.
+ /// Gets or sets the Key1 code.
///
- public partial class RefDataPrimaryKey : IPrimaryKey
- {
- ///
- /// Gets or sets the Key1 code.
- ///
- public string? Key1 { get; set; }
+ public string? Key1 { get; set; }
- ///
- /// Gets or sets the Other.
- ///
- public string? Other { get; set; }
+ ///
+ /// Gets or sets the Other.
+ ///
+ public string? Other { get; set; }
- ///
- /// Creates the primary .
- ///
- /// The primary .
- /// The .
+ ///
+ /// Creates the primary .
+ ///
+ /// The primary .
+ /// The .
public static CompositeKey CreatePrimaryKey(string? key1) => CompositeKey.Create(key1);
- ///
- /// Gets the primary (consists of the following property(s): ).
- ///
- [JsonIgnore]
- public CompositeKey PrimaryKey => CreatePrimaryKey(Key1);
- }
+ ///
+ /// Gets the primary (consists of the following property(s): ).
+ ///
+ [JsonIgnore]
+ public CompositeKey PrimaryKey => CreatePrimaryKey(Key1);
}
+
#pragma warning restore
#nullable restore
\ No newline at end of file
diff --git a/samples/Demo/Beef.Demo.Business/Data/Model/Generated/Robot.cs b/samples/Demo/Beef.Demo.Business/Data/Model/Generated/Robot.cs
index b14506d33..09e007882 100644
--- a/samples/Demo/Beef.Demo.Business/Data/Model/Generated/Robot.cs
+++ b/samples/Demo/Beef.Demo.Business/Data/Model/Generated/Robot.cs
@@ -5,56 +5,56 @@
#nullable enable
#pragma warning disable
-namespace Beef.Demo.Business.Data.Model
+namespace Beef.Demo.Business.Data.Model;
+
+///
+/// Represents the Robot model.
+///
+public partial class Robot : IIdentifier, IETag, IChangeLog
{
///
- /// Represents the Robot model.
+ /// Gets or sets the identifier.
+ ///
+ public string? Id { get; set; }
+
+ ///
+ /// Gets or sets the Model No.
+ ///
+ public string? ModelNo { get; set; }
+
+ ///
+ /// Gets or sets the Serial No.
+ ///
+ public string? SerialNo { get; set; }
+
+ ///
+ /// Gets or sets the Eye Color.
///
- public partial class Robot : IIdentifier, IETag, IChangeLog
- {
- ///
- /// Gets or sets the identifier.
- ///
- public string? Id { get; set; }
-
- ///
- /// Gets or sets the Model No.
- ///
- public string? ModelNo { get; set; }
-
- ///
- /// Gets or sets the Serial No.
- ///
- public string? SerialNo { get; set; }
-
- ///
- /// Gets or sets the Eye Color.
- ///
- public string? EyeColor { get; set; }
-
- ///
- /// Gets or sets the Power Source.
- ///
- public string? PowerSource { get; set; }
-
- ///
- /// Gets or sets the ETag.
- ///
- [Newtonsoft.Json.JsonProperty("_etag")]
- [JsonPropertyName("_etag")]
- public string? ETag { get; set; }
-
- ///
- /// Gets or sets the Change Log.
- ///
- public ChangeLog? ChangeLog { get; set; }
- }
+ public string? EyeColor { get; set; }
///
- /// Represents the collection.
+ /// Gets or sets the Power Source.
///
- public partial class RobotCollection : List { }
+ public string? PowerSource { get; set; }
+
+ ///
+ /// Gets or sets the ETag.
+ ///
+ [Newtonsoft.Json.JsonProperty("_etag")]
+ [JsonPropertyName("_etag")]
+ public string? ETag { get; set; }
+
+ ///
+ /// Gets or sets the Change Log.
+ ///
+ public ChangeLog? ChangeLog { get; set; }
}
+///
+/// Represents the collection.
+///
+public partial class RobotCollection : List { }
+
+
#pragma warning restore
#nullable restore
\ No newline at end of file
diff --git a/samples/Demo/Beef.Demo.Business/Entities/Generated/PersonOther.cs b/samples/Demo/Beef.Demo.Business/Entities/Generated/PersonOther.cs
index fe2fd06d4..77539d11b 100644
--- a/samples/Demo/Beef.Demo.Business/Entities/Generated/PersonOther.cs
+++ b/samples/Demo/Beef.Demo.Business/Entities/Generated/PersonOther.cs
@@ -5,51 +5,45 @@
#nullable enable
#pragma warning disable
-using System;
-using System.Collections.Generic;
-using System.Diagnostics.CodeAnalysis;
-using System.Text.Json.Serialization;
-using CoreEx.Entities;
+namespace Beef.Demo.Business.Entities;
-namespace Beef.Demo.Business.Entities
+///
+/// Represents the other without capabilities entity.
+///
+public partial class PersonOther : IIdentifier, IETag, IChangeLog
{
///
- /// Represents the other without capabilities entity.
+ /// Gets or sets the identifier.
///
- public partial class PersonOther : IIdentifier, IETag, IChangeLog
- {
- ///
- /// Gets or sets the identifier.
- ///
- public Guid Id { get; set; }
-
- ///
- /// Gets or sets the First Name.
- ///
- public string? FirstName { get; set; }
-
- ///
- /// Gets or sets the Last Name.
- ///
- public string? LastName { get; set; }
-
- ///
- /// Gets or sets the ETag.
- ///
- [JsonPropertyName("etag")]
- public string? ETag { get; set; }
-
- ///
- /// Gets or sets the Change Log.
- ///
- public ChangeLog? ChangeLog { get; set; }
- }
+ public Guid Id { get; set; }
///
- /// Represents the collection.
+ /// Gets or sets the First Name.
///
- public partial class PersonOtherCollection : List { }
+ public string? FirstName { get; set; }
+
+ ///
+ /// Gets or sets the Last Name.
+ ///
+ public string? LastName { get; set; }
+
+ ///
+ /// Gets or sets the ETag.
+ ///
+ [JsonPropertyName("etag")]
+ public string? ETag { get; set; }
+
+ ///
+ /// Gets or sets the Change Log.
+ ///
+ public ChangeLog? ChangeLog { get; set; }
}
+///
+/// Represents the collection.
+///
+public partial class PersonOtherCollection : List { }
+
+
#pragma warning restore
#nullable restore
\ No newline at end of file
diff --git a/samples/Demo/Beef.Demo.Common/Agents/Generated/ConfigAgent.cs b/samples/Demo/Beef.Demo.Common/Agents/Generated/ConfigAgent.cs
index 52a64fc2b..d8b4ae2cc 100644
--- a/samples/Demo/Beef.Demo.Common/Agents/Generated/ConfigAgent.cs
+++ b/samples/Demo/Beef.Demo.Common/Agents/Generated/ConfigAgent.cs
@@ -5,36 +5,24 @@
#nullable enable
#pragma warning disable
-using System;
-using System.Collections.Generic;
-using System.Net.Http;
-using System.Threading;
-using System.Threading.Tasks;
-using CoreEx.Entities;
-using CoreEx.Http;
-using CoreEx.Json;
-using Beef.Demo.Common.Entities;
-using RefDataNamespace = Beef.Demo.Common.Entities;
+namespace Beef.Demo.Common.Agents;
-namespace Beef.Demo.Common.Agents
+///
+/// Provides the Config HTTP agent.
+///
+public partial class ConfigAgent : TypedHttpClientBase, IConfigAgent
{
///
- /// Provides the Config HTTP agent.
+ /// Initializes a new instance of the class.
///
- public partial class ConfigAgent : TypedHttpClientBase, IConfigAgent
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// The underlying .
- /// The optional .
- /// The optional .
- public ConfigAgent(HttpClient client, IJsonSerializer? jsonSerializer = null, CoreEx.ExecutionContext? executionContext = null) : base(client, jsonSerializer, executionContext) { }
+ /// The underlying .
+ /// The optional .
+ /// The optional .
+ public ConfigAgent(HttpClient client, IJsonSerializer? jsonSerializer = null, CoreEx.ExecutionContext? executionContext = null) : base(client, jsonSerializer, executionContext) { }
- ///
- public Task> GetEnvVarsAsync(HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => PostAsync("api/v1/envvars", requestOptions: requestOptions, cancellationToken: cancellationToken);
- }
+ ///
+ public Task> GetEnvVarsAsync(HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => PostAsync("api/v1/envvars", requestOptions: requestOptions, cancellationToken: cancellationToken);
}
#pragma warning restore
diff --git a/samples/Demo/Beef.Demo.Common/Agents/Generated/ContactAgent.cs b/samples/Demo/Beef.Demo.Common/Agents/Generated/ContactAgent.cs
index 5ce2ff699..092d2b951 100644
--- a/samples/Demo/Beef.Demo.Common/Agents/Generated/ContactAgent.cs
+++ b/samples/Demo/Beef.Demo.Common/Agents/Generated/ContactAgent.cs
@@ -5,64 +5,52 @@
#nullable enable
#pragma warning disable
-using System;
-using System.Collections.Generic;
-using System.Net.Http;
-using System.Threading;
-using System.Threading.Tasks;
-using CoreEx.Entities;
-using CoreEx.Http;
-using CoreEx.Json;
-using Beef.Demo.Common.Entities;
-using RefDataNamespace = Beef.Demo.Common.Entities;
+namespace Beef.Demo.Common.Agents;
-namespace Beef.Demo.Common.Agents
+///
+/// Provides the HTTP agent.
+///
+public partial class ContactAgent : TypedHttpClientBase, IContactAgent
{
///
- /// Provides the HTTP agent.
+ /// Initializes a new instance of the class.
///
- public partial class ContactAgent : TypedHttpClientBase, IContactAgent
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// The underlying .
- /// The optional .
- /// The optional .
- public ContactAgent(HttpClient client, IJsonSerializer? jsonSerializer = null, CoreEx.ExecutionContext? executionContext = null) : base(client, jsonSerializer, executionContext) { }
-
- ///
- public Task> GetByQueryAsync(QueryArgs? query = null, PagingArgs? paging = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => GetAsync("api/v1/contacts/query", requestOptions: requestOptions.IncludeQuery(query).IncludePaging(paging), args: HttpArgs.Create(), cancellationToken: cancellationToken);
-
- ///
- public Task> GetAllAsync(HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => GetAsync("api/v1/contacts", requestOptions: requestOptions, cancellationToken: cancellationToken);
-
- ///
- public Task> GetAsync(Guid id, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => GetAsync("api/v1/contacts/{id}", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("id", id)), cancellationToken: cancellationToken);
-
- ///
- public Task> CreateAsync(Contact value, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => PostAsync("api/v1/contacts", value, requestOptions: requestOptions, cancellationToken: cancellationToken);
-
- ///
- public Task> UpdateAsync(Contact value, Guid id, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => PutAsync("api/v1/contacts/{id}", value, requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("id", id)), cancellationToken: cancellationToken);
-
- ///
- public Task> PatchAsync(HttpPatchOption patchOption, string value, Guid id, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => PatchAsync("api/v1/contacts/{id}", patchOption, value, requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("id", id)), cancellationToken: cancellationToken);
-
- ///
- public Task DeleteAsync(Guid id, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => DeleteAsync("api/v1/contacts/{id}", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("id", id)), cancellationToken: cancellationToken);
-
- ///
- public Task RaiseEventAsync(bool throwError, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => PostAsync("api/v1/contacts/raise", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("throwError", throwError)), cancellationToken: cancellationToken);
- }
+ /// The underlying .
+ /// The optional .
+ /// The optional .
+ public ContactAgent(HttpClient client, IJsonSerializer? jsonSerializer = null, CoreEx.ExecutionContext? executionContext = null) : base(client, jsonSerializer, executionContext) { }
+
+ ///
+ public Task> GetByQueryAsync(QueryArgs? query = null, PagingArgs? paging = null, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => GetAsync("api/v1/contacts/query", requestOptions: requestOptions.IncludeQuery(query).IncludePaging(paging), args: HttpArgs.Create(), cancellationToken: cancellationToken);
+
+ ///
+ public Task> GetAllAsync(HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => GetAsync("api/v1/contacts", requestOptions: requestOptions, cancellationToken: cancellationToken);
+
+ ///
+ public Task> GetAsync(Guid id, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => GetAsync("api/v1/contacts/{id}", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("id", id)), cancellationToken: cancellationToken);
+
+ ///
+ public Task> CreateAsync(Contact value, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => PostAsync("api/v1/contacts", value, requestOptions: requestOptions, cancellationToken: cancellationToken);
+
+ ///
+ public Task> UpdateAsync(Contact value, Guid id, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => PutAsync("api/v1/contacts/{id}", value, requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("id", id)), cancellationToken: cancellationToken);
+
+ ///
+ public Task> PatchAsync(HttpPatchOption patchOption, string value, Guid id, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => PatchAsync("api/v1/contacts/{id}", patchOption, value, requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("id", id)), cancellationToken: cancellationToken);
+
+ ///
+ public Task DeleteAsync(Guid id, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => DeleteAsync("api/v1/contacts/{id}", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("id", id)), cancellationToken: cancellationToken);
+
+ ///
+ public Task RaiseEventAsync(bool throwError, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => PostAsync("api/v1/contacts/raise", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("throwError", throwError)), cancellationToken: cancellationToken);
}
#pragma warning restore
diff --git a/samples/Demo/Beef.Demo.Common/Agents/Generated/GenderAgent.cs b/samples/Demo/Beef.Demo.Common/Agents/Generated/GenderAgent.cs
index 771b213d3..7765782c2 100644
--- a/samples/Demo/Beef.Demo.Common/Agents/Generated/GenderAgent.cs
+++ b/samples/Demo/Beef.Demo.Common/Agents/Generated/GenderAgent.cs
@@ -5,44 +5,32 @@
#nullable enable
#pragma warning disable
-using System;
-using System.Collections.Generic;
-using System.Net.Http;
-using System.Threading;
-using System.Threading.Tasks;
-using CoreEx.Entities;
-using CoreEx.Http;
-using CoreEx.Json;
-using Beef.Demo.Common.Entities;
-using RefDataNamespace = Beef.Demo.Common.Entities;
+namespace Beef.Demo.Common.Agents;
-namespace Beef.Demo.Common.Agents
+///
+/// Provides the HTTP agent.
+///
+public partial class GenderAgent : TypedHttpClientBase, IGenderAgent
{
///
- /// Provides the HTTP agent.
+ /// Initializes a new instance of the class.
///
- public partial class GenderAgent : TypedHttpClientBase, IGenderAgent
- {
- ///
- /// Initializes a new instance of the class.
- ///
- /// The underlying .
- /// The optional .
- /// The optional .
- public GenderAgent(HttpClient client, IJsonSerializer? jsonSerializer = null, CoreEx.ExecutionContext? executionContext = null) : base(client, jsonSerializer, executionContext) { }
+ /// The underlying .
+ /// The optional .
+ /// The optional .
+ public GenderAgent(HttpClient client, IJsonSerializer? jsonSerializer = null, CoreEx.ExecutionContext? executionContext = null) : base(client, jsonSerializer, executionContext) { }
- ///
- public Task> GetAsync(Guid id, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => GetAsync("api/v1/demo/ref/genders/{id}", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("id", id)), cancellationToken: cancellationToken);
+ ///
+ public Task> GetAsync(Guid id, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => GetAsync("api/v1/demo/ref/genders/{id}", requestOptions: requestOptions, args: HttpArgs.Create(new HttpArg("id", id)), cancellationToken: cancellationToken);
- ///
- public Task> CreateAsync(Gender value, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => PostAsync("api/v1/demo/ref/genders", value, requestOptions: requestOptions, cancellationToken: cancellationToken);
+ ///
+ public Task> CreateAsync(Gender value, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
+ => PostAsync("api/v1/demo/ref/genders", value, requestOptions: requestOptions, cancellationToken: cancellationToken);
- ///
- public Task> UpdateAsync(Gender value, Guid id, HttpRequestOptions? requestOptions = null, CancellationToken cancellationToken = default)
- => PutAsync