Skip to content

Bulk-configuring a value converter sample code typo #4911

Open
@adeotek

Description

@adeotek

Type of issue

Typo

Description

In the usage example for the Bulk-configuring a value converter the code contains .HaveConversion<... instead of .HasConversion<....

The code with the typo:

protected override void ConfigureConventions(ModelConfigurationBuilder configurationBuilder)
{
    configurationBuilder
        .Properties<Currency>()
        .HaveConversion<CurrencyConverter>();
}

The correct version:

protected override void ConfigureConventions(ModelConfigurationBuilder configurationBuilder)
{
    configurationBuilder
        .Properties<Currency>()
        .HasConversion<CurrencyConverter>();
}

Page URL

https://learn.microsoft.com/en-us/ef/core/modeling/value-conversions?tabs=data-annotations

Content source URL

https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/modeling/value-conversions.md

Document Version Independent Id

a26156d1-a4b3-7df0-e63e-b8e9f804abbf

Article author

@ajcvickers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions