-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Self-referencing parent/child table #457
Comments
[Solved] This morning I decided to try out #378 (Better Support for Parent/Child Records) not assuming it would work for my scenario. It worked!
This is what I got:
|
I'm glad that you found a solution that works. For 1-1 parent/child, it's probably better to do the single query. But if you wanted to go back to your original question... When querying Parent/Child with multiple recordsets, the child property probably would need to be a collection/list, so Insight could insert multiple records into the parent. (I say probably because there is a good chance that it can detect that it's not a list and then expect single records. I tend to forget all of the magic pieces...) |
Describe the question
I am trying to have a self referencing table populate my class using the Auto mapping feature on my Interface. I am NOT generating a treeview (Although I might later).
What am I doing incorrect? Am I missing something?
I have a table (simplified):
skill_group_id is identity
parent_group_id is foreign key and references skill_group_id
Steps to reproduce (if applicable)
Interface Repo (various permutations commented out; None produce the desired result)
I would like to see this after executing my call to the repo:
What I actually see after calling the repo: (ParentGroupId and ParentGroup are incorrect)
The text was updated successfully, but these errors were encountered: