mirror of
https://github.com/zoriya/EntityFrameworkCore.Projectables.git
synced 2025-12-06 05:56:10 +00:00
Relaxed version requirements
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="5.0.6" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="3.1.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -30,8 +30,8 @@ namespace EntityFrameworkCore.Projections.Services
|
||||
{
|
||||
parameterArgumentMapping = parameterArgumentMapping.Concat(
|
||||
node.Object is not null
|
||||
? reflectedExpression.Parameters.Skip(1).Zip(node.Arguments)
|
||||
: reflectedExpression.Parameters.Zip(node.Arguments)
|
||||
? reflectedExpression.Parameters.Skip(1).Zip(node.Arguments, (parameter, argument) => (parameter, argument))
|
||||
: reflectedExpression.Parameters.Zip(node.Arguments, (parameter, argument) => (parameter, argument))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user