mirror of
https://github.com/zoriya/EntityFrameworkCore.Projectables.git
synced 2025-12-06 05:56:10 +00:00
Made full compatibility the default
This commit is contained in:
@@ -10,12 +10,11 @@ namespace EntityFrameworkCore.Projectables.Infrastructure
|
||||
{
|
||||
/// <summary>
|
||||
/// Projectables are expanded on each individual query invocation.
|
||||
/// This mode can be used when you wan't to pass scoped services to your Projectable methods
|
||||
/// </summary>
|
||||
Full,
|
||||
/// <summary>
|
||||
/// Projectables are expanded in the query preprocessor and afterwards cached.
|
||||
/// This is the default compatibility mode.
|
||||
/// This yields some performance benefits over native EF with the downside of being incompatible with dynamic parameters.
|
||||
/// </summary>
|
||||
Limited
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace EntityFrameworkCore.Projectables.Infrastructure.Internal
|
||||
{
|
||||
public class ProjectionOptionsExtension : IDbContextOptionsExtension
|
||||
{
|
||||
CompatibilityMode _compatibilityMode = CompatibilityMode.Limited;
|
||||
CompatibilityMode _compatibilityMode = CompatibilityMode.Full;
|
||||
|
||||
public ProjectionOptionsExtension()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user