diff --git a/docs/en/framework/data/entity-framework-core/index.md b/docs/en/framework/data/entity-framework-core/index.md index a50edb2d4a..dc474de079 100644 --- a/docs/en/framework/data/entity-framework-core/index.md +++ b/docs/en/framework/data/entity-framework-core/index.md @@ -142,20 +142,20 @@ Configure(options => Add actions for the `ConfigureConventions` and `OnModelCreating` methods of the `DbContext` as shown below: ````csharp -options.DefaultConventionAction = (dbContext, builder) => +options.ConfigureDefaultConvention((dbContext, builder) => { // This action is called for ConfigureConventions method of all DbContexts. -}; +}); options.ConfigureConventions((dbContext, builder) => { // This action is called for ConfigureConventions method of specific DbContext. }); -options.DefaultOnModelCreatingAction = (dbContext, builder) => +options.ConfigureDefaultOnModelCreatingAction ( (dbContext, builder) => { // This action is called for OnModelCreating method of all DbContexts. -}; +}); options.ConfigureOnModelCreating((dbContext, builder) => { @@ -972,4 +972,4 @@ public class MyCustomEfCoreBulkOperationProvider * [Entities](../../architecture/domain-driven-design/entities.md) * [Repositories](../../architecture/domain-driven-design/repositories.md) -* [Video tutorial](https://abp.io/video-courses/essentials/abp-ef-core) \ No newline at end of file +* [Video tutorial](https://abp.io/video-courses/essentials/abp-ef-core)