Hi Robert
It would be awesome if “someone” added the usage of the mapping package to this sample app: https://github.com/couchbaselabs/mobile-travel-sample/tree/master/dotnet
I’m in the middle of architecting a fairly large app (using Xamarin Forms and Prism) - and I must admit I’m as bit challenged as to how to best combine the thoughts in the demo and a standard Prism project into a “pretty good practice”…
I know its not Couchbase’s job to teach me that - however, I like to see the good samples.
One thing that I’m curious about is:
- In the travel-sample app the models contain the actual query code
- In the mapping examples the model simply contains the properties
So should I just combine those two by adding the methods inside the model? It doesn’t feel quite right…
Ok, just reviewed the project again - and the “real” model (or rather data class) is actually inside the viewmodel class… - not sure that is best practice either… Well, anyway, good samples of structures and code that would work in the “real world” are always good to learn from - and typically we (the “users” of your product) end up building better apps - to the benefit of all