Skip to content

Commit 1d14e31

Browse files
committed
1.3.11
1 parent 91b6759 commit 1d14e31

6 files changed

Lines changed: 25 additions & 21 deletions

File tree

‎Generate ReleaseNotes.bat‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
rem https://github.com/StefH/GitHubReleaseNotes
22

3-
SET version=1.3.10
3+
SET version=1.3.11
44

55
GitHubReleaseNotes --output ReleaseNotes.md --skip-empty-releases --exclude-labels wontfix question invalid documentation --version %version% --token %GH_TOKEN%
66

‎NuGet.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ del /S *.nupkg
66

77
VS rebuild
88

9-
dotnet nuget push **\*.nupkg --source https://api.nuget.org/v3/index.json --api-key x
9+
dotnet nuget push **\*.nupkg --source https://api.nuget.org/v3/index.json --api-key x

‎PackageReleaseNotes.txt‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# 1.3.10 (29 January 2026)
2-
- #220 Fix LeftJoin for .NET 10 [bug]
3-
- #221 Fix NU1902 and NU1903 for Linqkit.Core project
4-
- #209 Building LinqKit.Core shows high severity vulnerabilities [bug]
5-
- #218 LeftJoin could be removed from .Net 10 version [bug]
1+
# 1.3.11 (07 February 2026)
2+
- #188 Improve invocation support [feature]
3+
- #222 Upgrade dependeny on Z.EntityFramework.Classic to latest version [security]
4+
- #215 Security vulnerabilities with System.Data.SqlClient 4.8.6 [security]
65

76
The full release notes can be found here: https://github.com/scottksmith95/LINQKit/blob/master/ReleaseNotes.md

‎README.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ The AsExpandable wrapper also lets you write expressions that call other express
204204
For example:
205205

206206
```csharp
207-
Expression<Func<Purchase,bool>> criteria1 = p => p.Price > 1000;
208-
Expression<Func<Purchase,bool>> criteria2 = p => criteria1.Invoke (p) || p.Description.Contains ("a");
207+
Expression<Func<Purchase, bool>> criteria1 = p => p.Price > 1000;
208+
Expression<Func<Purchase, bool>> criteria2 = p => criteria1.Invoke(p) || p.Description.Contains("a");
209209

210210
Console.WriteLine (criteria2.Expand().ToString());
211211
```
@@ -221,11 +221,11 @@ Notice that we have a nice, clean expression: the call to Invoke has been stripp
221221
If you're using an Invoked expression within a LINQ to SQL or Entity Framework query, and have called AsExpandable on the Table, you can optionally skip step 2. This is because AsExpandable automatically calls Expand on expressions. This means either of the following is valid:
222222

223223
```csharp
224-
var query = data.Purchases.AsExpandable().Where (criteria2);
224+
var query = data.Purchases.AsExpandable().Where(criteria2);
225225
```
226226

227227
```csharp
228-
var query = data.Purchases.Where (criteria2.Expand());
228+
var query = data.Purchases.Where(criteria2.Expand());
229229
```
230230

231231
Be sure to remember that AsExpandable() works on IQueryable<T> and Expand() works on Expression<TDelegate>
@@ -234,7 +234,7 @@ The one thing to watch is recursive expressions: these cannot be Expanded! Recur
234234

235235
```csharp
236236
Expression<Func<Purchase,bool>> criteria = p => p.Price > 1000;
237-
criteria = p => criteria.Invoke (p) || p.Description.Contains ("a");
237+
criteria = p => criteria.Invoke(p) || p.Description.Contains("a");
238238
```
239239

240240
That last line recursively calls itself and the original predicate (p.Price>1000) is lost!
@@ -258,7 +258,7 @@ IQueryable<Product> SearchProducts (params string[] keywords)
258258
foreach (string keyword in keywords)
259259
{
260260
string temp = keyword;
261-
query = query.Where (p => p.Description.Contains (temp));
261+
query = query.Where (p => p.Description.Contains(temp));
262262
}
263263
return query;
264264
}
@@ -282,7 +282,7 @@ IQueryable<Product> SearchProducts (params string[] keywords)
282282
foreach (string keyword in keywords)
283283
{
284284
string temp = keyword;
285-
predicate = predicate.And (p => p.Description.Contains (temp));
285+
predicate = predicate.And (p => p.Description.Contains(temp));
286286
}
287287
return dataContext.Products.Where (predicate);
288288
}
@@ -298,7 +298,7 @@ IQueryable<Product> SearchProducts (params string[] keywords)
298298
foreach (string keyword in keywords)
299299
{
300300
string temp = keyword;
301-
predicate = predicate.Or (p => p.Description.Contains (temp));
301+
predicate = predicate.Or (p => p.Description.Contains(temp));
302302
}
303303
return dataContext.Products.Where (predicate);
304304
}
@@ -368,7 +368,7 @@ public partial class Product
368368
foreach (string keyword in keywords)
369369
{
370370
string temp = keyword;
371-
predicate = predicate.Or (p => p.Description.Contains (temp));
371+
predicate = predicate.Or (p => p.Description.Contains(temp));
372372
}
373373
return predicate;
374374
}
@@ -412,7 +412,7 @@ Consider the following predicate:
412412
```csharp
413413
p => p.Price > 100 &&
414414
p.Price < 1000 &&
415-
(p.Description.Contains ("foo") || p.Description.Contains ("far"))
415+
(p.Description.Contains("foo") || p.Description.Contains("far"))
416416
```
417417

418418
Let's say we wanted to build this dynamically. The question is, how do we deal with the parenthesis around the two expressions in the last line?
@@ -421,8 +421,8 @@ The answer is to build the parenthesised expression first, and then consume it i
421421

422422
```csharp
423423
var inner = PredicateBuilder.New<Product>();
424-
inner = inner.Start(p => p.Description.Contains ("foo"));
425-
inner = inner.Or(p => p.Description.Contains ("far"));
424+
inner = inner.Start(p => p.Description.Contains("foo"));
425+
inner = inner.Or(p => p.Description.Contains("far"));
426426

427427
var outer = PredicateBuilder.New<Product>();
428428
outer = outer.Start(p => p.Price > 100);

‎ReleaseNotes.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
# 1.3.11 (07 February 2026)
2+
- [#188](https://github.com/scottksmith95/LINQKit/pull/188) - Improve invocation support [feature] contributed by [TheConstructor](https://github.com/TheConstructor)
3+
- [#222](https://github.com/scottksmith95/LINQKit/pull/222) - Upgrade dependeny on Z.EntityFramework.Classic to latest version [security] contributed by [StefH](https://github.com/StefH)
4+
- [#215](https://github.com/scottksmith95/LINQKit/issues/215) - Security vulnerabilities with System.Data.SqlClient 4.8.6 [security]
5+
16
# 1.3.10 (29 January 2026)
27
- [#220](https://github.com/scottksmith95/LINQKit/pull/220) - Fix LeftJoin for .NET 10 [bug] contributed by [StefH](https://github.com/StefH)
3-
- [#221](https://github.com/scottksmith95/LINQKit/pull/221) - Fix NU1902 and NU1903 for Linqkit.Core project contributed by [StefH](https://github.com/StefH)
8+
- [#221](https://github.com/scottksmith95/LINQKit/pull/221) - Fix NU1902 and NU1903 for Linqkit.Core project [security] contributed by [StefH](https://github.com/StefH)
49
- [#209](https://github.com/scottksmith95/LINQKit/issues/209) - Building LinqKit.Core shows high severity vulnerabilities [bug]
510
- [#218](https://github.com/scottksmith95/LINQKit/issues/218) - LeftJoin could be removed from .Net 10 version [bug]
611

‎version.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<PatchVersion>10</PatchVersion>
3+
<PatchVersion>11</PatchVersion>
44
</PropertyGroup>
55
</Project>

0 commit comments

Comments
 (0)