Nick-Lucas / LimeBean

Hybrid-ORM for .NET
https://nick-lucas.github.io/LimeBean/
MIT License
28 stars 5 forks source link

Traversing relations #33

Closed bilogic closed 5 years ago

bilogic commented 6 years ago

Hi,

I'm just curious, is there anyway to traverse in LimeBean much like in redbeanphp (without writing a class for each table)? e.g. $page->book->title

Thank you.

Nick-Lucas commented 6 years ago

The only way I could think of is to do the lookup/query yourself with the primary & foreign keys on each table. Generally I've not used Limebean for relational structures, only for querying legacy databases one table at a time, though it's certainly possible with classes.