Skip to content

Conversation

@Turnerj
Copy link
Member

@Turnerj Turnerj commented Aug 15, 2020

  • Change from "heavy MongoDbSet" to "heavy MongoDbContext"
    • Uses a single entity entry container (bye bye EntityCollection)
    • Has dedicated support for staging commands
  • Index and Command writers are now static rather than individual instances
  • Drops support of Entity Mutation (was over complicating things and to be honest, wasn't a good idea in the first place)

Anything depending on internal infrastructure is likely incompatible due to the number of things removed or significantly changed.

For general users (besides ones that used entity mutators), they shouldn't notice any differences.

Commands are now handled more directly by the instantiating class
Entity commands are now responsible for their validation and mutation
- This changes from a "heavy MongoDbSet" to a "heavy MongoDbContext"
- Drops the previous entity collection implementation
- Index and Command writers are now static
- Completely drops mutation support (was overcomplicating things)

This is a very, very, breaking change for any extensions of the internal infrastructure. Only partially breaking change for those dependent on entity mutators.
@Turnerj Turnerj changed the title WIP: Command Refactor WIP: Context/DbSet/Collection Refactor Aug 17, 2020
@Turnerj Turnerj marked this pull request as ready for review August 17, 2020 06:49
@Turnerj Turnerj changed the title WIP: Context/DbSet/Collection Refactor Context/DbSet/Collection Refactor Aug 17, 2020
@Turnerj Turnerj merged commit c75fc97 into master Aug 17, 2020
@Turnerj Turnerj deleted the command-refactor branch August 17, 2020 06:53
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