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

Review provider breaking changes approach #6622

Closed
AndriySvyryd opened this issue Sep 27, 2016 · 0 comments
Closed

Review provider breaking changes approach #6622

AndriySvyryd opened this issue Sep 27, 2016 · 0 comments
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Milestone

Comments

@AndriySvyryd
Copy link
Member

Connection resiliency introduced breaking changes to some of the base classes for provider services by requiring a new dependency in the constructor for RelationalDatabaseCreator and RelationalQueryContextFactory. We could use suboptimal workarounds to avoid this or we could introduce a dependency on ICurrentDbContext in all of our provider services base classes, so it can be used to resolve the new dependencies without breaking existing implementations for future releases.

@rowanmiller rowanmiller added this to the 1.1.0-preview1 milestone Oct 6, 2016
ajcvickers added a commit that referenced this issue Oct 7, 2016
Issue #6622

The approach we discussed didn't pan out exactly because IRelationalDatabaseCreator can also be obtained as the non-relational service IDatabaseCreator. The delegate for this is defined in the core package and so cannot directly reference relational types. Therefore, I created an abstract interface that any provider service can implement which then allows the service itself to request the additional services it needs.

Tested by making SQLite and SQL Server providers use the obsolete constructor and running all tests.

RelationalQueryContextFactory was not changed--see issue #6713.

We should review other constructors for changes--see issue #6714
ajcvickers added a commit that referenced this issue Oct 7, 2016
Issue #6622

The approach we discussed didn't pan out exactly because IRelationalDatabaseCreator can also be obtained as the non-relational service IDatabaseCreator. The delegate for this is defined in the core package and so cannot directly reference relational types. Therefore, I created an abstract interface that any provider service can implement which then allows the service itself to request the additional services it needs.

Tested by making SQLite and SQL Server providers use the obsolete constructor and running all tests.

RelationalQueryContextFactory was not changed--see issue #6713.

We should review other constructors for changes--see issue #6714
@ajcvickers ajcvickers added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Oct 7, 2016
@ajcvickers ajcvickers modified the milestones: 1.1.0-preview1, 1.1.0 Oct 15, 2022
@ajcvickers ajcvickers removed their assignment Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Projects
None yet
Development

No branches or pull requests

3 participants