Removed V1 support

This commit is contained in:
Koen Bekkenutte
2021-12-12 20:12:50 +08:00
parent 401b7d8043
commit 34a6a4b592
5 changed files with 6 additions and 49 deletions
@@ -120,20 +120,6 @@ namespace EntityFrameworkCore.Projectables.Infrastructure.Internal
debugInfo["Projectables:CompatibilityMode"] = Extension._compatibilityMode.ToString();
}
#if EFPROJECTABLES1
public override long GetServiceProviderHashCode()
{
var hashCode = nameof(ProjectionOptionsExtension).GetHashCode();
var extension = (ProjectionOptionsExtension)Extension;
hashCode ^= extension._compatibilityMode.GetHashCode();
return hashCode;
}
#endif
#if EFPROJECTABLES2
public override int GetServiceProviderHashCode()
{
var hashCode = new HashCode();
@@ -146,7 +132,6 @@ namespace EntityFrameworkCore.Projectables.Infrastructure.Internal
public override bool ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo other)
=> other is ExtensionInfo otherInfo && Extension._compatibilityMode == otherInfo.Extension._compatibilityMode;
#endif
}
}
}