Skip to content

Add support for default value conventions #9329

Description

@AndriySvyryd

This would be an implementation of the Transparent Functional Reactive Programming where the model and all its state becomes observable, default values are computable and a new reactive type of conventions is added.

Default values are only computed when the corresponding value is requested and it hasn't been overridden. Default values and reactive conventions automatically subscribe to the changes on all used inputs and rerun if any input changes.

If a reactive convention implements specific convention interfaces they can be used to run a faster local version.

Observable value changes are grouped in the current convention batch and the reactions are executed atomically.

This is closely related to #15898. A new Default ConfigurationSource will be added to indicate that a value is set through this mechanism.

This will allow to efficiently calculate the values for value generated, type mapping (review usages of ProviderConventionSetBuilderDependencies.TypeMappingSource), column and table name which in turn allows removing TableNameFromDbSetConvention and dropping DbContext and DbSetFinder dependencies from RelationalConventionSetBuilder.

Activity

  1. self-assigned this
    on Aug 3, 2017
  2. added this to the 2.1.0 milestone on Aug 4, 2017
  3. removed this from the 2.1.0 milestone on Jan 11, 2018
  4. changed the title [-]Move TableNameFromDbSetConvention to RelationalModelCustomizer[/-] [+]Add support for default value conventions[/+] on Jan 11, 2018
  5. added this to the Backlog milestone on Jan 17, 2018
  6. modified the milestones: Backlog, 6.0.0 on Oct 28, 2020
  7. 9 remaining items

  8. added 4 commits that reference this issue on Jan 20, 2022
  9. modified the milestones: 7.0.0, Backlog on Apr 23, 2022
  10. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions