Replies: 1 comment
-
Works pretty well with AutoMapper added on client side (Blazor Wasm), where we can create map from defined fragment to client model. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Purpose: for using StrawberryShake-generated interfaces as guidlines to client-side models, created manually.
For example, we have domain models at server side like
And query it with StrawberryShake like
It produces following code:
Where the Name property implements query-based interface, not just INameModel. So we can't use IPersonModel to implement it in client-side model Person like
Person : IPersonModel
without relation to the specific query.I think, I've conceptually wrong and there is another use for fragments. But after switching from OpenRiaServices, there is no such native client model autogeneration like before.
Found generated PersonEntity, but it looks like for internal StrawberryShake use in its store. Can we use such entities in business-logic scenarios?
Beta Was this translation helpful? Give feedback.
All reactions