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

HaveDefaultValue configuration #31312

Open
Tracked by #22952
TonyValenti opened this issue Jul 19, 2023 · 2 comments
Open
Tracked by #22952

HaveDefaultValue configuration #31312

TonyValenti opened this issue Jul 19, 2023 · 2 comments

Comments

@TonyValenti
Copy link

I would like to be able to use a convention to set default values for all properties of a certain type. Something like this:

        protected override void ConfigureConventions(ModelConfigurationBuilder configurationBuilder) {
            
            configurationBuilder.Properties<string>().HaveDefaultValue(string.Empty);
            
            base.ConfigureConventions(configurationBuilder);
        }

@AndriySvyryd AndriySvyryd added this to the Backlog milestone Jul 19, 2023
@AndriySvyryd AndriySvyryd changed the title HaveDefaultValue Convention HaveDefaultValue configuration Jul 20, 2023
@TonyValenti

This comment has been minimized.

@roji

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants