Skip to content

Commit 2d5930a

Browse files
authored
Up date to latest ef core dependency (#244)
1 parent 4a11689 commit 2d5930a

File tree

3 files changed

+448
-20
lines changed

3 files changed

+448
-20
lines changed

Dependencies.targets

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<EFCoreVersion>[8.0.3,8.0.999]</EFCoreVersion>
3+
<EFCoreVersion>[8.0.6,8.0.999]</EFCoreVersion>
44
</PropertyGroup>
55

66
<ItemGroup>
@@ -10,7 +10,7 @@
1010
<PackageReference Update="Microsoft.Extensions.Caching.Memory" Version="8.0.0" />
1111
<PackageReference Update="Microsoft.EntityFrameworkCore" Version="$(EFCoreVersion)" />
1212
<PackageReference Update="Microsoft.EntityFrameworkCore.Relational" Version="$(EFCoreVersion)" />
13-
<PackageReference Update="System.Diagnostics.DiagnosticSource" Version="8.0.0" />
13+
<PackageReference Update="System.Diagnostics.DiagnosticSource" Version="8.0.1" />
1414
<PackageReference Update="DotNetAnalyzers.DocumentationAnalyzers" Version="1.0.0-beta.59" />
1515
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="8.0.0" />
1616

@@ -28,9 +28,9 @@
2828
<PackageReference Update="Microsoft.EntityFrameworkCore.Design" Version="$(EFCoreVersion)" />
2929
<PackageReference Update="Microsoft.EntityFrameworkCore.Relational.Specification.Tests" Version="$(EFCoreVersion)" />
3030
<PackageReference Update="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
31-
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.9.0" />
32-
<PackageReference Update="MSTest.TestAdapter" Version="3.2.2" />
33-
<PackageReference Update="MSTest.TestFramework" Version="3.2.2" />
31+
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.10.0" />
32+
<PackageReference Update="MSTest.TestAdapter" Version="3.4.3" />
33+
<PackageReference Update="MSTest.TestFramework" Version="3.4.3" />
3434
<PackageReference Update="coverlet.collector" Version="6.0.2" />
3535
<PackageReference Update="Newtonsoft.Json" Version="13.0.3" />
3636

src/EFCore.Jet/Query/Internal/JetLiftOrderByPostprocessor.cs

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ public virtual Expression Process(Expression expression)
128128
selectExpression.PushdownIntoSubquery();
129129
}
130130

131-
for (int j = 0; j < columnsToRewrite.Count; j++)
131+
foreach (var colr in columnsToRewrite)
132132
{
133-
(int? index, OrderingExpression? oexp, bool ascending, bool rewrite, bool referstocurouter) = columnsToRewrite[j];
133+
(int? index, OrderingExpression? oexp, bool ascending, bool rewrite, bool referstocurouter) = colr.Value;
134134
if (index.HasValue)
135135
{
136136
var proj = selectExpression.Projection[index.Value];
@@ -145,20 +145,9 @@ public virtual Expression Process(Expression expression)
145145
}
146146
}
147147

148-
if (isscalarselect)
148+
if (isscalarselect && selectExpression.Projection.Count > 1)
149149
{
150-
List<ProjectionExpression> newProjections = new List<ProjectionExpression>();
151-
for (int j = 0; j < selectExpression.Projection.Count; j++)
152-
{
153-
var proj = selectExpression.Projection[j];
154-
var item = columnsToRewrite.SingleOrDefault(c => c.Value.indexcol == j);
155-
if (item.Value.indexcol == null)
156-
{
157-
newProjections.Add(proj);
158-
}
159-
160-
}
161-
150+
List<ProjectionExpression> newProjections = [selectExpression.Projection[0]];
162151
selectExpression = selectExpression.Update(newProjections, selectExpression.Tables, selectExpression.Predicate,
163152
selectExpression.GroupBy, selectExpression.Having, selectExpression.Orderings,
164153
selectExpression.Limit, selectExpression.Offset);

0 commit comments

Comments
 (0)