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

A higher-level interface #3

Open
jtheisen opened this issue Feb 13, 2019 · 0 comments
Open

A higher-level interface #3

jtheisen opened this issue Feb 13, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jtheisen
Copy link
Owner

We want an interface to reconciler that combines context creation with the various calls to Reconcile and other functions.

In particular, a higher-level function to save data using reconciler should

  1. call Reconcile
  2. call SaveChanges
  3. decycle and blacken the attached entity graph

The advantage would be that this gives write operations against the database which are

  • powerful enough to cover most use cases but
  • simple enough to be able to run in one transaction, and to be serialized to be sent over the wire

The second advantage regarding transactions is also a plus in the light of Azure SQL Databases recommending all requests to the database using a retry policy, and arbitrary combinations of database writes with contexts spread over long code paths isn't easy to retry.

@miriamblumenstein miriamblumenstein added the enhancement New feature or request label Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants