Azka 4.0.0-alpha.17
See the version list below for details.
dotnet add package Azka --version 4.0.0-alpha.17
NuGet\Install-Package Azka -Version 4.0.0-alpha.17
<PackageReference Include="Azka" Version="4.0.0-alpha.17" />
paket add Azka --version 4.0.0-alpha.17
#r "nuget: Azka, 4.0.0-alpha.17"
// Install Azka as a Cake Addin #addin nuget:?package=Azka&version=4.0.0-alpha.17&prerelease // Install Azka as a Cake Tool #tool nuget:?package=Azka&version=4.0.0-alpha.17&prerelease
Azka
Overview
Dotnet Core 6
Flow Create Document
Example Purchase Order and Purchase Order Detail
Create Draft Purchase Order
CreateDraftPurchaseOrderHandler({id: 0})
This will create new document po with value:
{ "Id": 1, "DocumentStatus": "DRAFT" }
Path Property PO Number
PatchPurchaseOrderHandler( { id: 1, { PropertyName: "PoNumber", Value: "PO0001" } });
This will Patch document po with value:
{ "Id": 1, "PoNumber": "PO0001", "DocumentStatus": "DRAFT" }
Add New PO Detail
AddPurchaseOrderDetailHandler({PurchaseOrderId: 1})
This will create new document po detail with:
{ "Id": 1, "PurchaseOrderId": 1, "DocumentStatus": "DRAFT" }
Data PO will updated to:
{ "Id": 1, "PONumber": "PO0001", "DocumentStatus": "DRAFT", "PODetails": [ { "Id": 1, "PurchaseOrderId": 1, "DocumentStatus": "DRAFT" } ] }
Update PO Detail Set Item
PatchPurchaseOrderDetailHandler( { id: 1, { PropertyName: "ItemId", Value: "1" } });
This will update data po with value: Data PO will updated to:
{ "Id": 1, "PONumber": "PO0001", "DocumentStatus": "DRAFT", "PODetails": [ { "Id": 1, "PurchaseOrderId": 1, "DocumentStatus": "DRAFT", "ItemId": 1 } ] }
Save PO Document
CommitPurchaseOrder({id: 1})
This will update data PO with value:
{ "Id": 1, "PONumber": "PO0001", "DocumentStatus": "SAVED", "PODetails": [ { "Id": 1, "PurchaseOrderId": 1, "DocumentStatus": "SAVED", "ItemId": 1 } ] }
Flow Edit Document
Example Purchase Order and Purchase Order Detail
Create Draft Purchase Order
CreateDraftPurchaseOrderHandler({id: 1})
Expected Data
{ "Id": 2, "OriginalDocumentId": 1, "PONumber": "PO0001", "DocumentStatus": "DRAFT", "PODetails": [ { "Id": 2, "OriginalDocumentId": 1, "PurchaseOrderId": 2, "DocumentStatus": "DRAFT", "ItemId": 1 } ] }
Path Property PO Number
PatchPurchaseOrderHandler( { id: 2, { PropertyName: "PoNumber", Value: "PO0002" } });
Expected Data
{ "Id": 2, "OriginalDocumentId": 1, "PONumber": "PO0002", "DocumentStatus": "DRAFT", "PODetails": [ { "Id": 2, "OriginalDocumentId": 1, "PurchaseOrderId": 2, "DocumentStatus": "DRAFT", "ItemId": 1 } ] }
Add New PO Detail
AddPurchaseOrderDetailHandler({PurchaseOrderId: 2})
Expected Data:
{ "Id": 2, "OriginalDocumentId": 1, "PONumber": "PO0002", "DocumentStatus": "DRAFT", "PODetails": [ { "Id": 2, "OriginalDocumentId": 1, "PurchaseOrderId": 2, "DocumentStatus": "DRAFT", "ItemId": 1 }, { "Id": 3, "OriginalDocumentId": null, "PurchaseOrderId": 2, "DocumentStatus": "DRAFT" } ] }
Update PO Detail Id 2
PatchPurchaseOrderDetailHandler( { id: 2, { PropertyName: "ItemId", Value: "2" } });
Expected Data:
{ "Id": 2, "OriginalDocumentId": 1, "PONumber": "PO0002", "DocumentStatus": "DRAFT", "PODetails": [ { "Id": 2, "OriginalDocumentId": 1, "PurchaseOrderId": 2, "DocumentStatus": "DRAFT", "ItemId": 2 }, { "Id": 3, "OriginalDocumentId": null, "PurchaseOrderId": 2, "DocumentStatus": "DRAFT" } ] }
Update PO Detail Id 3
PatchPurchaseOrderDetailHandler(
{
id: 3,
{
PropertyName: "ItemId",
Value: "1"
}
});
Expected Data:
{
"Id": 2,
"OriginalDocumentId": 1,
"PONumber": "PO0002",
"DocumentStatus": "DRAFT",
"PODetails": [
{
"Id": 2,
"OriginalDocumentId": 1,
"PurchaseOrderId": 2,
"DocumentStatus": "DRAFT",
"ItemId": 2
},
{
"Id": 3,
"OriginalDocumentId": null,
"PurchaseOrderId": 2,
"DocumentStatus": "DRAFT",
"ItemId": 1
}
]
}
Save PO Document
CommitPurchaseOrder({id: 2})
Process Commit Data When Commit Edit Document:
- Clone Original Data To History
- Commit Draft To Original Document
Expected:
{ "Id": 2, "OriginalDocumentId": 1, "PONumber": "PO0002", "DocumentStatus": "COMMITED", "PODetails": [ { "Id": 2, "OriginalDocumentId": 1, "PurchaseOrderId": 2, "DocumentStatus": "COMMITED", "ItemId": 2 }, { "Id": 3, "OriginalDocumentId": null, "PurchaseOrderId": 2, "DocumentStatus": "COMMITED", "ItemId": 1 } ] }
Expected All Data:
[ { "Id": 1, "OriginalDocumentId": null, "SourceDocumentId": 3, // FETCH FROM HISTORY DATA ID "PONumber": "PO0002", "DocumentStatus": "SAVED", "PODetails": [ { "Id": 1, "OriginalDocumentId": null, "SourceDocumentId": 4, // FETCH FROM HISTORY DATA ID "PurchaseOrderId": 1, "DocumentStatus": "SAVED", "ItemId": 2 }, { "Id": 5, "OriginalDocumentId": null, "SourceDocumentId": null, "PurchaseOrderId": 1, "DocumentStatus": "SAVED", "ItemId": 1 } ] }, { "Id": 2, "OriginalDocumentId": 1, "PONumber": "PO0002", "DocumentStatus": "COMMITED", "PODetails": [ { "Id": 2, "OriginalDocumentId": 1, "PurchaseOrderId": 2, "DocumentStatus": "COMMITED", "ItemId": 2 }, { "Id": 3, "OriginalDocumentId": null, "PurchaseOrderId": 2, "DocumentStatus": "COMMITED", "ItemId": 1 } ] }, { "Id": 3, "PONumber": "PO0001", "OriginalDocumentId": 1, // ORIGINAL GET ORIGINAL ID FOR TRACKING CHANGES "SourceDocumentId": null, // SOURCE NULL FOR HISTORY "DocumentStatus": "HISTORY", "PODetails": [ { "Id": 4, "PurchaseOrderId": 1, "OriginalDocumentId": 1, // ORIGINAL GET ORIGINAL ID FOR TRACKING CHANGES "SourceDocumentId": null, // SOURCE NULL FOR HISTORY "DocumentStatus": "HISTORY", "ItemId": 1 } ] } ]
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Ardalis.Specification (>= 8.0.0)
- Ardalis.Specification.EntityFrameworkCore (>= 8.0.0)
- AutoMapper (>= 13.0.1)
- ErrorOr (>= 1.9.0)
- Microsoft.EntityFrameworkCore (>= 8.0.1)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
4.0.0-alpha.18 | 37 | 11/24/2024 |
4.0.0-alpha.17 | 43 | 11/12/2024 |
4.0.0-alpha.16 | 73 | 5/6/2024 |
4.0.0-alpha.15 | 87 | 2/8/2024 |
4.0.0-alpha.14 | 114 | 1/1/2024 |
4.0.0-alpha.13 | 116 | 12/16/2023 |
4.0.0-alpha.12 | 80 | 12/16/2023 |
4.0.0-alpha.11 | 80 | 12/16/2023 |
4.0.0-alpha.10 | 83 | 12/15/2023 |
4.0.0-alpha.9 | 117 | 11/12/2023 |
4.0.0-alpha.8 | 74 | 11/10/2023 |
4.0.0-alpha.7 | 95 | 4/28/2023 |
4.0.0-alpha.6 | 95 | 4/28/2023 |
4.0.0-alpha.5 | 100 | 4/26/2023 |
4.0.0-alpha.4 | 87 | 4/24/2023 |
4.0.0-alpha.3 | 92 | 4/24/2023 |
4.0.0-alpha.2 | 101 | 4/20/2023 |
4.0.0-alpha.1 | 98 | 4/20/2023 |
3.0.0-alpha.6 | 222 | 12/29/2022 |
3.0.0-alpha.5 | 112 | 12/5/2022 |
3.0.0-alpha.4 | 126 | 10/15/2022 |
3.0.0-alpha.2 | 123 | 10/15/2022 |
3.0.0-alpha.1 | 133 | 10/15/2022 |
2.0.1-alpha1 | 197 | 6/8/2022 |
2.0.1-alpha.6 | 124 | 10/14/2022 |
2.0.1-alpha.5 | 128 | 10/2/2022 |
2.0.1-alpha.4 | 140 | 9/19/2022 |
2.0.1-alpha.3 | 124 | 9/10/2022 |
2.0.1-alpha.2 | 148 | 7/14/2022 |
2.0.1-alpha.1 | 148 | 6/11/2022 |
2.0.0 | 546 | 5/21/2022 |
0.0.1-alpha.4 | 147 | 5/9/2022 |
0.0.1-alpha.3 | 140 | 2/6/2022 |
0.0.1-alpha.2 | 159 | 2/5/2022 |
0.0.1-alpha.1 | 158 | 1/22/2022 |