Skip to content

Add support to ICollection on WithCollectionProperty#22

Merged
ipvalverde merged 9 commits intomasterfrom
add-support-efcore-issue-21
Oct 26, 2019
Merged

Add support to ICollection on WithCollectionProperty#22
ipvalverde merged 9 commits intomasterfrom
add-support-efcore-issue-21

Conversation

@ipvalverde
Copy link
Copy Markdown
Owner

This PR adds 2 new functionalities:

  • Extend all WithCollectionProperty overloads to support ICollection properties. This property must be already initialized in the model, otherwise, an exception will be thrown.
  • Change the behaviour of existing WithCollectionProperty methods. Now if the collection property is already initialized, the extraction process will only add new instances of extracted data to it rather than always creating a new instance of the collection property.

A sample using EF core models was also added to the repository.

This PR fixes issue #21

@ipvalverde ipvalverde merged commit 3ce7be2 into master Oct 26, 2019
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

Successfully merging this pull request may close these issues.

1 participant