Made full compatibility the default

This commit is contained in:
Koen
2022-10-13 00:43:46 +01:00
parent df1ed1759a
commit 5e075c93bc
2 changed files with 2 additions and 3 deletions

View File

@@ -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
}

View File

@@ -16,7 +16,7 @@ namespace EntityFrameworkCore.Projectables.Infrastructure.Internal
{
public class ProjectionOptionsExtension : IDbContextOptionsExtension
{
CompatibilityMode _compatibilityMode = CompatibilityMode.Limited;
CompatibilityMode _compatibilityMode = CompatibilityMode.Full;
public ProjectionOptionsExtension()
{