Skip to content
Discussion options

You must be logged in to vote

I have no understanding of your complete use case because you stated, "only applies to fetch operation," and you stated, "interaction with the UI". There is no interaction with the UI during a fetch operation.

My general advice:

  • When needing to interact with collections externally (class A needs to manipulate class B's collection, work with the items of the collection. Replacing a collection should always be clearing the existing items and adding the new entities.
  • Think about potential database effects of the operation. If it is intended to cause data changes (deletes and inserts), use the collection manipulation operations (remove, add, insert, clear, etc.) to make changes.
  • Think about …

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@Chicagoan2016
Comment options

@hurcane
Comment options

Answer selected by Chicagoan2016
Comment options

You must be logged in to vote
4 replies
@hurcane
Comment options

@Chicagoan2016
Comment options

@Chicagoan2016
Comment options

@hurcane
Comment options

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