Browse Source

use Add convention example instead of remove in the article entry

pull/14860/head
İsmail ÇAĞDAŞ 4 years ago
parent
commit
e8af4cc177
  1. 2
      docs/en/Community-Articles/2022-11-28-Model-building-conventions-ef7/POST.md

2
docs/en/Community-Articles/2022-11-28-Model-building-conventions-ef7/POST.md

@ -11,7 +11,7 @@ If you want to add, remove or replace a convention, you need to override `Config
```csharp
protected override void ConfigureConventions(ModelConfigurationBuilder configurationBuilder)
{
configurationBuilder.Conventions.Remove(typeof(MyCustomConvention));
configurationBuilder.Conventions.Add(_ => new MyCustomConvention());
}
```

Loading…
Cancel
Save