From dd37cea6a282de8dee6f04a441e48831f4874c5a Mon Sep 17 00:00:00 2001 From: andrey Date: Wed, 15 Nov 2023 15:54:29 +0400 Subject: [PATCH 1/9] upd readme --- Readme.md | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/Readme.md b/Readme.md index 56405fc..8173867 100644 --- a/Readme.md +++ b/Readme.md @@ -3,19 +3,23 @@ [![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/E305) [![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183) - -*Files to look at*: -* [Order.cs](CS/EFCore/MasterPropertiesEF/MasterPropertiesEF.Module/BusinessObjects/Order.cs) -* [Product.cs](CS/EFCore/MasterPropertiesEF/MasterPropertiesEF.Module/BusinessObjects/Product.cs) - # How to calculate a master property based on values from a details collection -

See the How to: Calculate a Property Value Based on Values from a Detail Collection help topic for more information.

See Also:
-XPO Best Practices
-How to display details collections with descendant classes filtered by object type in a DetailView

-
+## Implementation Details +Refer to the following help topic for information about how to accomplish this task with XPO: [Calculate a Property Value Based on Values from a Detail Collection(XPO)](https://docs.devexpress.com/eXpressAppFramework/113179/business-model-design-orm/business-model-design-with-xpo/calculate-a-property-value-based-on-values-from-a-detail-collection) + +As for EF Core, please review this example's files to learn how to accomplish this task: +- [Order.cs](CS/EFCore/MasterPropertiesEF/MasterPropertiesEF.Module/BusinessObjects/Order.cs) +- [Product.cs](CS/EFCore/MasterPropertiesEF/MasterPropertiesEF.Module/BusinessObjects/Product.cs) + + + +## Files to Review + +- [Order.cs](CS/EFCore/MasterPropertiesEF/MasterPropertiesEF.Module/BusinessObjects/Order.cs) +- [Product.cs](CS/EFCore/MasterPropertiesEF/MasterPropertiesEF.Module/BusinessObjects/Product.cs) From cb3299184c5c5bbb4aff9d9d11733eea3acaf233 Mon Sep 17 00:00:00 2001 From: AndreyKozhevnikov Date: Wed, 15 Nov 2023 15:54:56 +0400 Subject: [PATCH 2/9] Update Readme.md --- Readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Readme.md b/Readme.md index 8173867..6029fce 100644 --- a/Readme.md +++ b/Readme.md @@ -6,6 +6,7 @@ # How to calculate a master property based on values from a details collection +![chrome_HiLXq4Oolu](https://github.com/DevExpress-Examples/XAF_how-to-calculate-a-master-property-based-on-values-from-a-details-collection-e305/assets/14300209/66c95bc7-11b2-4b9d-9754-03d93c91066a) ## Implementation Details From 71ba97c4ea1dc213a5b1848ab2b10e4ab260ab51 Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Wed, 15 Nov 2023 16:00:49 +0400 Subject: [PATCH 3/9] README auto update [skip ci] --- Readme.md | 1 - 1 file changed, 1 deletion(-) diff --git a/Readme.md b/Readme.md index 6029fce..a5752d1 100644 --- a/Readme.md +++ b/Readme.md @@ -1,5 +1,4 @@ -![](https://img.shields.io/endpoint?url=https://codecentral.devexpress.com/api/v1/VersionRange/128588058/22.2.6%2B) [![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/E305) [![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183) From 3da159df4dbe0979959fb43ad3baadf704ccd62a Mon Sep 17 00:00:00 2001 From: Elena Khamlyuk Date: Tue, 25 Jun 2024 16:30:13 +0400 Subject: [PATCH 4/9] update according to guidelines --- Readme.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Readme.md b/Readme.md index a5752d1..26ef151 100644 --- a/Readme.md +++ b/Readme.md @@ -3,23 +3,19 @@ [![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183) -# How to calculate a master property based on values from a details collection +# XAF - How to calculate a master property based on values from a detail collection -![chrome_HiLXq4Oolu](https://github.com/DevExpress-Examples/XAF_how-to-calculate-a-master-property-based-on-values-from-a-details-collection-e305/assets/14300209/66c95bc7-11b2-4b9d-9754-03d93c91066a) - - -## Implementation Details +This example implements a business class that has one of its properties calculated based on properties of objects contained in the child object collection. -Refer to the following help topic for information about how to accomplish this task with XPO: [Calculate a Property Value Based on Values from a Detail Collection(XPO)](https://docs.devexpress.com/eXpressAppFramework/113179/business-model-design-orm/business-model-design-with-xpo/calculate-a-property-value-based-on-values-from-a-detail-collection) +![chrome_HiLXq4Oolu](https://github.com/DevExpress-Examples/XAF_how-to-calculate-a-master-property-based-on-values-from-a-details-collection-e305/assets/14300209/66c95bc7-11b2-4b9d-9754-03d93c91066a) -As for EF Core, please review this example's files to learn how to accomplish this task: +For EF Core, review the following files for implementation details: - [Order.cs](CS/EFCore/MasterPropertiesEF/MasterPropertiesEF.Module/BusinessObjects/Order.cs) - [Product.cs](CS/EFCore/MasterPropertiesEF/MasterPropertiesEF.Module/BusinessObjects/Product.cs) - +For XPO, refer to the following help topic: [Calculate a Property Value Based on Values from a Detail Collection (XPO)](https://docs.devexpress.com/eXpressAppFramework/113179/business-model-design-orm/business-model-design-with-xpo/calculate-a-property-value-based-on-values-from-a-detail-collection) ## Files to Review - [Order.cs](CS/EFCore/MasterPropertiesEF/MasterPropertiesEF.Module/BusinessObjects/Order.cs) - [Product.cs](CS/EFCore/MasterPropertiesEF/MasterPropertiesEF.Module/BusinessObjects/Product.cs) - From 4f43014e95614fce32c6bb87a566d87a3553caa1 Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Tue, 25 Jun 2024 16:32:48 +0400 Subject: [PATCH 5/9] README auto update [skip ci] --- Readme.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Readme.md b/Readme.md index 26ef151..f9ec035 100644 --- a/Readme.md +++ b/Readme.md @@ -1,6 +1,7 @@ [![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/E305) [![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183) +[![](https://img.shields.io/badge/💬_Leave_Feedback-feecdd?style=flat-square)](#does-this-example-address-your-development-requirementsobjectives) # XAF - How to calculate a master property based on values from a detail collection @@ -19,3 +20,10 @@ For XPO, refer to the following help topic: [Calculate a Property Value Based on - [Order.cs](CS/EFCore/MasterPropertiesEF/MasterPropertiesEF.Module/BusinessObjects/Order.cs) - [Product.cs](CS/EFCore/MasterPropertiesEF/MasterPropertiesEF.Module/BusinessObjects/Product.cs) + +## Does this example address your development requirements/objectives? + +[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=XAF_how-to-calculate-a-master-property-based-on-values-from-a-details-collection&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=XAF_how-to-calculate-a-master-property-based-on-values-from-a-details-collection&~~~was_helpful=no) + +(you will be redirected to DevExpress.com to submit your response) + From 0a873febfd768e20061a736dc7e5cc686bd7f8da Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Wed, 26 Jun 2024 07:29:43 +0400 Subject: [PATCH 6/9] README auto update [skip ci] --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index f9ec035..7bf5755 100644 --- a/Readme.md +++ b/Readme.md @@ -23,7 +23,7 @@ For XPO, refer to the following help topic: [Calculate a Property Value Based on ## Does this example address your development requirements/objectives? -[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=XAF_how-to-calculate-a-master-property-based-on-values-from-a-details-collection&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=XAF_how-to-calculate-a-master-property-based-on-values-from-a-details-collection&~~~was_helpful=no) +[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=XAF_how-to-calculate-a-master-property-based-on-values-from-a-detail-collection&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=XAF_how-to-calculate-a-master-property-based-on-values-from-a-detail-collection&~~~was_helpful=no) (you will be redirected to DevExpress.com to submit your response) From cdf708e2a2c652839cecfc56308f6a3292cc758c Mon Sep 17 00:00:00 2001 From: Elena Khamlyuk <80813840+khamlyuk@users.noreply.github.com> Date: Wed, 26 Jun 2024 16:35:34 +0400 Subject: [PATCH 7/9] Update Readme.md --- Readme.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 88e9c37..3c6974c 100644 --- a/Readme.md +++ b/Readme.md @@ -14,7 +14,12 @@ For EF Core, review the following files for implementation details: - [Order.cs](CS/EFCore/MasterPropertiesEF/MasterPropertiesEF.Module/BusinessObjects/Order.cs) - [Product.cs](CS/EFCore/MasterPropertiesEF/MasterPropertiesEF.Module/BusinessObjects/Product.cs) -For XPO, refer to the following help topic: [Calculate a Property Value Based on Values from a Detail Collection (XPO)](https://docs.devexpress.com/eXpressAppFramework/113179/business-model-design-orm/business-model-design-with-xpo/calculate-a-property-value-based-on-values-from-a-detail-collection) +For XPO, review the following files: + +- [Order.cs](CS/XPO/MasterProperties/MasterProperties.Module/BusinessObjects/Order.cs) +- [Product.cs](CS/XPO/MasterProperties/MasterProperties.Module/BusinessObjects/Product.cs) + +You can also refer to the following help topic for a step-by-step instructions: [Calculate a Property Value Based on Values from a Detail Collection (XPO)](https://docs.devexpress.com/eXpressAppFramework/113179/business-model-design-orm/business-model-design-with-xpo/calculate-a-property-value-based-on-values-from-a-detail-collection) ## Files to Review From f2c93cc445be433aab38e547c693a2446e4535f6 Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Wed, 9 Oct 2024 15:38:08 +0300 Subject: [PATCH 8/9] Created a new file vale.yml [skip ci] --- .github/workflows/vale.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/vale.yml diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml new file mode 100644 index 0000000..adadc73 --- /dev/null +++ b/.github/workflows/vale.yml @@ -0,0 +1,26 @@ +name: vale-validation +on: + pull_request: + paths: + - README.md + +jobs: + vale: + name: runner / vale + runs-on: ubuntu-latest + steps: + - name: clone repo + uses: actions/checkout@v4 + - name: clone vale-styles repo + uses: actions/checkout@v4 + with: + repository: DevExpress/vale-styles + path: vale-styles + ssh-key: ${{ secrets.VALE_STYLES_ACCESS_KEY }} + - name: copy vale rules to the root repo + run: shopt -s dotglob && cp -r ./vale-styles/vale/* . + - name: vale linter check + uses: DevExpress/vale-action@reviewdog + with: + files: README.md + fail_on_error: true From 0c35ec0ed7cf91dca8cddc128729fd2e2e027bad Mon Sep 17 00:00:00 2001 From: DevExpressExampleBot Date: Tue, 15 Oct 2024 11:39:17 +0400 Subject: [PATCH 9/9] Vale auto update [skip ci] --- .github/workflows/vale.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index adadc73..068c35b 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -24,3 +24,5 @@ jobs: with: files: README.md fail_on_error: true + filter_mode: nofilter + reporter: github-check