Skip to content
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

Support nested collections #63

Open
Jogai opened this issue Aug 5, 2023 · 1 comment
Open

Support nested collections #63

Jogai opened this issue Aug 5, 2023 · 1 comment

Comments

@Jogai
Copy link

Jogai commented Aug 5, 2023

given:

    new Creator{Id = 1, FullName = @"Douglas Adams", Born = new DateOnly(1952,4,11), Died = new DateOnly(2001,5,11)};
	new Work{Id = 41, CreatorId = 1, Title = @"Young Zaphod Plays It Safe"};

Result:

	 ---------------------------------------------------------------------------------------------------------------------- 
	 | Id | FullName      | Born       | Died       | PrimaryLanguage | Works                                             |
	 ---------------------------------------------------------------------------------------------------------------------- 
	 | 1  | Douglas Adams | 04/11/1952 | 05/11/2001 |                 | System.Collections.ObjectModel.Collection`1[Work] |
	 ---------------------------------------------------------------------------------------------------------------------- 

It would be really nice if instead of System.Collections.ObjectModel.Collection1[Work]` the following table was inserted:

	 -------------------------------------------------------------------- 
	 | Id | Title                      | Language | CreatorId | Creator |
	 -------------------------------------------------------------------- 
	 | 41 | Young Zaphod Plays It Safe |          | 1         | Creator |
	 -------------------------------------------------------------------- 
@ericnewton76
Copy link

just build the internal table with each row as a string and add it to the outer table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants