diff --git a/entity-framework/core/modeling/index.md b/entity-framework/core/modeling/index.md index 3622cebdd9..deb6f29c9e 100644 --- a/entity-framework/core/modeling/index.md +++ b/entity-framework/core/modeling/index.md @@ -18,10 +18,10 @@ This article covers configuration that can be applied to a model targeting any d You can override the `OnModelCreating` method in your derived context and use the `ModelBuilder API` to configure your model. This is the most powerful method of configuration and allows configuration to be specified without modifying your entity classes. Fluent API configuration has the highest precedence and will override conventions and data annotations. -[!code-csharp[Main](../../../samples/core/Modeling/FluentAPI/Required.cs?highlight=11-13)] +[!code-csharp[Main](../../../samples/core/Modeling/FluentAPI/Required.cs?highlight=12-14)] ## Use data annotations to configure a model You can also apply attributes (known as Data Annotations) to your classes and properties. Data annotations will override conventions, but will be overridden by Fluent API configuration. -[!code-csharp[Main](../../../samples/core/Modeling/DataAnnotations/Required.cs?highlight=14)] +[!code-csharp[Main](../../../samples/core/Modeling/DataAnnotations/Required.cs?highlight=15)]