mirror of
https://github.com/zoriya/EntityFrameworkCore.Projectables.git
synced 2026-08-15 18:44:57 +00:00
Improved full compat mode perf
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ namespace EntityFrameworkCore.Projectables.FunctionalTests.ExtensionMethods
|
||||
[Fact]
|
||||
public Task ExtensionMethodAcceptingDbContext()
|
||||
{
|
||||
using var dbContext = new SampleDbContext<Entity>(Infrastructure.CompatibilityMode.Full);
|
||||
using var dbContext = new SampleDbContext<Entity>();
|
||||
|
||||
var sampleQuery = dbContext.Set<Entity>()
|
||||
.Select(x => dbContext.Set<Entity>().Where(y => y.Id > x.Id).FirstOrDefault());
|
||||
|
||||
-1
@@ -28,7 +28,6 @@ namespace EntityFrameworkCore.Projectables.FunctionalTests.Generics
|
||||
return Verifier.Verify(query.ToQueryString());
|
||||
}
|
||||
|
||||
|
||||
[Fact]
|
||||
public void MultipleInvocations()
|
||||
{
|
||||
|
||||
+5
-1
@@ -16,7 +16,11 @@ namespace EntityFrameworkCore.Projectables.Tests.Services
|
||||
{
|
||||
var parameter = Expression.Parameter(typeof(int));
|
||||
var argument = Expression.Constant(1);
|
||||
var subject = new ExpressionArgumentReplacer(new[] { (parameter, (Expression)argument) });
|
||||
var subject = new ExpressionArgumentReplacer() {
|
||||
ParameterArgumentMapping = {
|
||||
{ parameter, argument }
|
||||
}
|
||||
};
|
||||
|
||||
var result = subject.Visit(parameter);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user