Well, that works as espected, great!
However, now I have something more sophisticated, like this:
(for brevity, I ommited all FieldAlias attributes etc. I made sure I didn't screw up there)
This works great when saving data into the database and even when retrieving Users.
But when I try querying on the Firstname property of the Name property of the PersonalInfo property of the Profile property of a User, I get a runtime error: 'Field 'Name' not found on class 'Profile''
For example, take this query:
It simply throws up, while the next query:
works without any problems.
My guess is that it has something to do with having nested complex
struct types.
If that's the case, how can I work around this? Transforming the structs into classes is not an option, because I want everything stored in just two tables: Users and Profiles.
You may download the sample project
here.
Please advise.