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

Connection specific information should be resolved as scoped #877

Closed
fubar-coder opened this issue May 8, 2018 · 0 comments
Closed

Connection specific information should be resolved as scoped #877

fubar-coder opened this issue May 8, 2018 · 0 comments
Assignees
Labels
improvement Improvement of behavior or code quality

Comments

@fubar-coder
Copy link
Member

Supported scenario

This allows the reconfiguration of the connection string/used database at run-time.

Applies to

  • Connection string
  • Processor/generator selection
  • Type filters

Changes

The following option classes are now resolved using IOptionSnapshot<T>:

  • ProcessorOptions
  • SelectingProcessorAccessorOptions
  • SelectingGeneratorAccessorOptions
  • TypeFilterOptions

The following services are now scoped instead of singleton:

  • IVersionTableMetaDataAccessor
  • IVersionTableMetaData
  • IMigrationSource
  • IMigrationInformationLoader

The MigrationSource now consumes all registered IMigrationSourceItem instances.

@fubar-coder fubar-coder added the improvement Improvement of behavior or code quality label May 8, 2018
@fubar-coder fubar-coder self-assigned this May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement of behavior or code quality
Projects
None yet
Development

No branches or pull requests

1 participant