Thanks for this video tutorial (even if I am late to the game)! I was wondering if this pattern is applicable to the stores defined in an onion architecture as shown in your onion architecture templates?
For example, in your video you are directly using the items observable collection from the store in your view model. Does this mean that it renders the DTOs used in the onion architecutre useless?
100%. You can easily build your stores to interfaces and inject those into your actual ViewModels and use your DTOs either directly, or handle the change event to keep the collection in the ViewModel as well and do mappings from DTOs to inner-ViewModels.
Thanks for this video tutorial (even if I am late to the game)! I was wondering if this pattern is applicable to the stores defined in an onion architecture as shown in your onion architecture templates?
For example, in your video you are directly using the items observable collection from the store in your view model. Does this mean that it renders the DTOs used in the onion architecutre useless?
LikeLike
100%. You can easily build your stores to interfaces and inject those into your actual ViewModels and use your DTOs either directly, or handle the change event to keep the collection in the ViewModel as well and do mappings from DTOs to inner-ViewModels.
LikeLike
Thanks Alex. This sounds like the way to go then for my onion test project. Definetly an interesting pattern to explore. Cheers for raising awareness.
LikeLike