Skip to content

Commit

Permalink
Updates related to PR #54
Browse files Browse the repository at this point in the history
  • Loading branch information
StefH committed Mar 21, 2017
1 parent 12f25fc commit 6abae6f
Show file tree
Hide file tree
Showing 10 changed files with 39 additions and 133 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

| Project | NuGet | Dependency | Frameworks |
| ------- | ----- | -----------| ---------- |
| LinqKit | [![Version](https://img.shields.io/nuget/v/LinqKit.svg)](https://www.nuget.org/packages/LinqKit) | EntityFramework | <ul><li>net45</li><li>net45x</li><li>net46x</li></ul> |
| LinqKit.Core | [![Version](https://img.shields.io/nuget/v/LinqKit.Core.svg)](https://www.nuget.org/packages/LinqKit.Core) | | <ul><li>net35</li><li>net40</li><li>net45 & net45x</li><li>net46x</li><li>netcore5</li><li>.NETPortable Profile 328</li><li>netstandard1.3</li><li>sl5</li><li>uap10</li></ul>|
| LinqKit.EntityFramework | [![Version](https://img.shields.io/nuget/v/LinqKit.EntityFramework.svg)](https://www.nuget.org/packages/LinqKit.EntityFramework) | EntityFramework | <ul><li>net45</li><li>net45x</li><li>net46x</li></ul> |
| LinqKit.Microsoft.EntityFrameworkCore | [![Version](https://img.shields.io/nuget/v/LinqKit.Microsoft.EntityFrameworkCore.svg)](https://www.nuget.org/packages/LinqKit.Microsoft.EntityFrameworkCore) | EntityFrameworkCore | <ul><li>net45x</li><li>net46x</li><li>netcore5</li><li>netstandard1.3</li></ul>|
| LinqKit | [![Version](https://img.shields.io/nuget/v/LinqKit.svg)](https://www.nuget.org/packages/LinqKit) | EntityFramework | <ul><li>net45 and up</li></ul> |
| LinqKit.Core | [![Version](https://img.shields.io/nuget/v/LinqKit.Core.svg)](https://www.nuget.org/packages/LinqKit.Core) | | <ul><li>net35</li><li>net40</li><li>net45 and up</li><li>netcore5</li><li>.NETPortable Profile 328</li><li>netstandard1.3</li><li>sl5</li><li>uap10</li></ul>|
| LinqKit.EntityFramework | [![Version](https://img.shields.io/nuget/v/LinqKit.EntityFramework.svg)](https://www.nuget.org/packages/LinqKit.EntityFramework) | EntityFramework | <ul><li>net451 and up</li></ul> |
| LinqKit.Microsoft.EntityFrameworkCore | [![Version](https://img.shields.io/nuget/v/LinqKit.Microsoft.EntityFrameworkCore.svg)](https://www.nuget.org/packages/LinqKit.Microsoft.EntityFrameworkCore) | EntityFrameworkCore | <ul><li>net451 and up</li><li>netcore5</li><li>netstandard1.3</li></ul>|


Table of Contents
Expand Down
6 changes: 2 additions & 4 deletions src/LinqKit.Core/LinqKit.Core.xproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>

<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
<PropertyGroup Label="Globals">
<ProjectGuid>fc735db2-5419-4cf3-8aea-8231330a4d85</ProjectGuid>
<RootNamespace>LinqKit.Core</RootNamespace>
<RootNamespace>LinqKit</RootNamespace>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
</PropertyGroup>

<PropertyGroup>
<SchemaVersion>2.0</SchemaVersion>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>
</Project>
9 changes: 4 additions & 5 deletions src/LinqKit.Core/PredicateBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using JetBrains.Annotations;
using System;
using System.Linq;
using System.Linq.Expressions;

namespace LinqKit
Expand All @@ -20,10 +19,10 @@ public enum PredicateOperator
/// </summary>
public static class PredicateBuilder
{
protected class RebindParameterVisitor : ExpressionVisitor
private class RebindParameterVisitor : ExpressionVisitor
{
private ParameterExpression _oldParameter;
private ParameterExpression _newParameter;
private readonly ParameterExpression _oldParameter;
private readonly ParameterExpression _newParameter;

public RebindParameterVisitor(ParameterExpression oldParameter, ParameterExpression newParameter)
{
Expand Down Expand Up @@ -96,4 +95,4 @@ public static Expression<Func<T, bool>> Extend<T>([NotNull] this ExpressionStart
return @operator == PredicateOperator.Or ? first.Or(second) : first.And(second);
}
}
}
}
76 changes: 18 additions & 58 deletions src/LinqKit.Core/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.1.8.0",
"version": "1.1.9.0",
"title": "LinqKit.Core",
"description": "LinqKit.Core is a free set of extensions for LINQ to SQL and Entity Framework power users. Note that Include(...), IAsync and IDbAsync are not supported.",
"authors": [ "Joseph Albahari", "Tomas Petricek", "Scott Smith", "Tuomas Hietanen", "Stef Heyenrath" ],
Expand All @@ -14,7 +14,7 @@
},
"projectUrl": "https://github.com/scottksmith95/LINQKit",
"licenseUrl": "https://github.com/scottksmith95/LINQKit/master/license.txt",
"releaseNotes": "Create new NuGet package"
"releaseNotes": "Rebind base parameter in PredicateBuilder instead of using Invoke. And upgraded dependencies to 4.3.0 for NETStandard and UAP."
},

"buildOptions": {
Expand Down Expand Up @@ -58,46 +58,6 @@
}
}
},
"net451": {
"frameworkAssemblies": {
},
"dependencies": {
"JetBrains.Annotations": {
"version": "10.0.0",
"type": "build"
}
}
},
"net452": {
"frameworkAssemblies": {
},
"dependencies": {
"JetBrains.Annotations": {
"version": "10.0.0",
"type": "build"
}
}
},
"net46": {
"frameworkAssemblies": {
},
"dependencies": {
"JetBrains.Annotations": {
"version": "10.0.0",
"type": "build"
}
}
},
"net461": {
"frameworkAssemblies": {
},
"dependencies": {
"JetBrains.Annotations": {
"version": "10.0.0",
"type": "build"
}
}
},
"netcore50": {
"buildOptions": { "define": [ "WINDOWS_APP" ] },
"dependencies": {
Expand Down Expand Up @@ -135,16 +95,16 @@
],
"dependencies": {
"JetBrains.Annotations": {
"version": "10.1.5",
"version": "10.4.0",
"type": "build"
},
"System.Linq.Expressions": "4.1.0",
"System.Linq.Queryable": "4.0.1",
"System.Reflection.Extensions": "4.0.1",
"System.Reflection.TypeExtensions": "4.1.0",
"System.Runtime": "4.1.0",
"System.Runtime.InteropServices": "4.1.0",
"System.Threading.Tasks": "4.0.11"
"System.Linq.Expressions": "4.3.0",
"System.Linq.Queryable": "4.3.0",
"System.Reflection.Extensions": "4.3.0",
"System.Reflection.TypeExtensions": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.InteropServices": "4.3.0",
"System.Threading.Tasks": "4.3.0"
}
},
"sl5": {
Expand All @@ -168,16 +128,16 @@
"buildOptions": { "define": [ "UAP" ] },
"dependencies": {
"JetBrains.Annotations": {
"version": "10.1.4",
"version": "10.4.0",
"type": "build"
},
"System.Linq.Expressions": "4.1.0",
"System.Linq.Queryable": "4.0.1",
"System.Reflection.Extensions": "4.0.1",
"System.Reflection.TypeExtensions": "4.1.0",
"System.Runtime": "4.1.0",
"System.Runtime.InteropServices": "4.1.0",
"System.Threading.Tasks": "4.0.11"
"System.Linq.Expressions": "4.3.0",
"System.Linq.Queryable": "4.3.0",
"System.Reflection.Extensions": "4.3.0",
"System.Reflection.TypeExtensions": "4.3.0",
"System.Runtime": "4.3.0",
"System.Runtime.InteropServices": "4.3.0",
"System.Threading.Tasks": "4.3.0"
}
}
}
Expand Down
12 changes: 2 additions & 10 deletions src/LinqKit.EntityFramework/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.1.8.0",
"version": "1.1.9.0",
"title": "LinqKit for EntityFramework with Include(...) and IAsync support",
"description": "LinqKit.EntityFramework is a free set of extensions for LINQ to SQL and Entity Framework power users. Include(...) and IAsync are supported.",
"authors": [ "Joseph Albahari", "Tomas Petricek", "Scott Smith", "Tuomas Hietanen", "Stef Heyenrath" ],
Expand All @@ -14,7 +14,7 @@
},
"projectUrl": "https://github.com/scottksmith95/LINQKit",
"licenseUrl": "https://github.com/scottksmith95/LINQKit/master/license.txt",
"releaseNotes": "New version"
"releaseNotes": "Rebind base parameter in PredicateBuilder instead of using Invoke."
},

"buildOptions": {
Expand Down Expand Up @@ -42,14 +42,6 @@

"frameworks": {
"net45": {
},
"net451": {
},
"net452": {
},
"net46": {
},
"net461": {
}
}
}
43 changes: 4 additions & 39 deletions src/LinqKit.Microsoft.EntityFrameworkCore/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.1.9",
"version": "1.1.10.0",
"title": "LinqKit for Microsoft.EntityFrameworkCore with Include(...) and IDbAsync support",
"description": "LinqKit.Microsoft.EntityFrameworkCore is a free set of extensions for LINQ to SQL and EntityFrameworkCore power users. With Include(...) and IDbAsync support.",
"authors": [ "Joseph Albahari", "Tomas Petricek", "Scott Smith", "Tuomas Hietanen", "Stef Heyenrath" ],
Expand All @@ -14,7 +14,7 @@
},
"projectUrl": "https://github.com/scottksmith95/LINQKit",
"licenseUrl": "https://github.com/scottksmith95/LINQKit/master/license.txt",
"releaseNotes": "Upgrade Microsoft.EntityFrameworkCore to 1.1.0"
"releaseNotes": "Rebind base parameter in PredicateBuilder instead of using Invoke. "
},

"buildOptions": {
Expand Down Expand Up @@ -45,30 +45,6 @@
}
}
},
"net452": {
"dependencies": {
"JetBrains.Annotations": {
"version": "10.0.0",
"type": "build"
}
}
},
"net46": {
"dependencies": {
"JetBrains.Annotations": {
"version": "10.0.0",
"type": "build"
}
}
},
"net461": {
"dependencies": {
"JetBrains.Annotations": {
"version": "10.0.0",
"type": "build"
}
}
},
"dnx451": {
"dependencies": {
"JetBrains.Annotations": {
Expand All @@ -91,22 +67,11 @@
"netstandard1.3": {
"buildOptions": { "define": [ "NETSTANDARD" ] },
"imports": [
"dotnet5.4",
"portable-win81+wp81",
"portable-net45+wp8",
"portable-net45+win8+wp8",
"portable-wp81+wpa81",
"portable-win81+wp81+wpa81",
"portable-net45+win8+wpa81+wp8",
"portable-net45+win8",
"portable-net45+win8+wpa81",
"portable-win81+wpa81",
"portable-net451+win81",
"portable-net451+win81+wpa81"
"dotnet5.4"
],
"dependencies": {
"JetBrains.Annotations": {
"version": "10.1.4",
"version": "10.4.0",
"type": "build"
},
"System.Reflection.TypeExtensions": "4.3.0",
Expand Down
12 changes: 2 additions & 10 deletions src/LinqKit/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.1.8.0",
"version": "1.1.9.0",
"title": "LinqKit for EntityFramework (with IAsync support)",
"description": "LinqKit.EntityFramework is a free set of extensions for LINQ to SQL and Entity Framework power users. Include(...) and IAsync are supported.",
"authors": [ "Joseph Albahari", "Tomas Petricek", "Scott Smith", "Tuomas Hietanen", "Stef Heyenrath" ],
Expand All @@ -14,7 +14,7 @@
},
"projectUrl": "https://github.com/scottksmith95/LINQKit",
"licenseUrl": "https://github.com/scottksmith95/LINQKit/master/license.txt",
"releaseNotes": "Bring back dependency on EntityFramework."
"releaseNotes": "Rebind base parameter in PredicateBuilder instead of using Invoke."
},

"buildOptions": {
Expand Down Expand Up @@ -42,14 +42,6 @@

"frameworks": {
"net45": {
},
"net451": {
},
"net452": {
},
"net46": {
},
"net461": {
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<Private>True</Private>
</Reference>
<Reference Include="LinqKit">
<HintPath>..\..\src\LinqKit\bin\$(Configuration)\net452\LinqKit.dll</HintPath>
<HintPath>..\..\src\LinqKit\bin\$(Configuration)\net45\LinqKit.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.DataAnnotations" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"Microsoft.AspNetCore.Identity.EntityFrameworkCore": "1.1.0",
"Microsoft.EntityFrameworkCore.Sqlite": "1.1.0",
"Microsoft.EntityFrameworkCore.SqlServer": "1.1.0",
"System.Linq.Parallel": "4.0.1",
"System.Linq.Parallel": "4.3.0",
"System.Threading.Tasks": "4.3.0"
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/LinqKit.Tests.Net452/LinqKit.Tests.Net452.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="LinqKit.Core">
<HintPath>..\..\src\LinqKit.Core\bin\$(Configuration)\net452\LinqKit.Core.dll</HintPath>
<HintPath>..\..\src\LinqKit.Core\bin\$(Configuration)\net45\LinqKit.Core.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.DataAnnotations" />
Expand Down

0 comments on commit 6abae6f

Please sign in to comment.