Browse Source

Update Entity-Framework-Core.md

pull/6292/head
maliming 5 years ago
committed by GitHub
parent
commit
acee880831
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      docs/en/Entity-Framework-Core.md

17
docs/en/Entity-Framework-Core.md

@ -446,6 +446,23 @@ context.Services.AddAbpDbContext<OtherDbContext>(options =>
In this example, `OtherDbContext` implements `IBookStoreDbContext`. This feature allows you to have multiple DbContext (one per module) on development, but single DbContext (implements all interfaces of all DbContexts) on runtime.
### Enabling split queries globally by default
Abp enables split queries globally by default for better performance. You can also change it as needed, such as:
````csharp
Configure<AbpDbContextOptions>(options =>
{
options.UseSqlServer(optionsBuilder =>
{
//Change QuerySplittingBehavior
optionsBuilder.UseQuerySplittingBehavior(QuerySplittingBehavior.SingleQuery);
});
});
````
For more information, please refer to https://docs.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.querysplittingbehavior?view=efcore-5.0
## See Also
* [Entities](Entities.md)

Loading…
Cancel
Save