Skip to content

Commit b1eb5f8

Browse files
committed
VersionBump : v0.27.0
1 parent 590535b commit b1eb5f8

File tree

6 files changed

+24
-19
lines changed

6 files changed

+24
-19
lines changed

src/CodeOfChaos.Extensions.Analyzers/CodeOfChaos.Extensions.Analyzers.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<!-- Main package name -->
1414
<PackageId>CodeOfChaos.Extensions.Analyzers</PackageId>
15-
<Version>0.26.0</Version>
15+
<Version>0.27.0</Version>
1616
<Authors>Anna Sas</Authors>
1717
<Description>Additional diagnostics to make CodeOfChaos.Extensions easier to use as a developer</Description>
1818
<PackageProjectUrl>https://github.com/code-of-chaos/cs-code_of_chaos-extensions</PackageProjectUrl>

src/CodeOfChaos.Extensions.AspNetCore/CodeOfChaos.Extensions.AspNetCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<!-- Main package name -->
1010
<PackageId>CodeOfChaos.Extensions.AspNetCore</PackageId>
11-
<Version>0.26.0</Version>
11+
<Version>0.27.0</Version>
1212
<Authors>Anna Sas</Authors>
1313
<Description>A Library of broadly used extensions for AspNetCore</Description>
1414
<PackageProjectUrl>https://github.com/code-of-chaos/cs-code_of_chaos-extensions</PackageProjectUrl>

src/CodeOfChaos.Extensions.EntityFrameworkCore/CodeOfChaos.Extensions.EntityFrameworkCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<!-- Main package name -->
99
<PackageId>CodeOfChaos.Extensions.EntityFrameworkCore</PackageId>
10-
<Version>0.26.0</Version>
10+
<Version>0.27.0</Version>
1111
<Authors>Anna Sas</Authors>
1212
<Description>A Library of broadly used extensions for EntityFrameworkCore</Description>
1313
<PackageProjectUrl>https://github.com/code-of-chaos/cs-code_of_chaos-extensions</PackageProjectUrl>

src/CodeOfChaos.Extensions.EntityFrameworkCore/LinqExtensions.cs

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,44 @@ public static IQueryable<T> ConditionalInclude<T>(this IQueryable<T> source, boo
1515
? source.Include(include)
1616
: source;
1717

18-
public static IQueryable<T> ConditionalWhere<T>(this IQueryable<T> source, bool condition, Expression<Func<T, bool>> predicate) =>
19-
condition
18+
public static IQueryable<T> ConditionalWhere<T>(this IQueryable<T> source, bool condition, Expression<Func<T, bool>> predicate)
19+
=> condition
2020
? source.Where(predicate)
2121
: source;
2222

23-
public static IQueryable<T> ConditionalTake<T>(this IQueryable<T> source, bool condition, int count) =>
24-
condition
23+
public static IQueryable<T> ConditionalTake<T>(this IQueryable<T> source, bool condition, int count)
24+
=> condition
2525
? source.Take(count)
2626
: source;
2727

28-
public static IQueryable<T> ConditionalTake<T>(this IQueryable<T> source, bool condition, Range range) =>
29-
condition
28+
public static IQueryable<T> ConditionalTake<T>(this IQueryable<T> source, bool condition, Range range)
29+
=> condition
3030
? source.Take(range)
3131
: source;
3232

33-
public static IQueryable<T> ConditionalOrderBy<T>(this IQueryable<T> source, bool condition, Expression<Func<T, object>> orderBy) =>
34-
condition
33+
public static IQueryable<T> ConditionalOrderBy<T>(this IQueryable<T> source, bool condition, Expression<Func<T, object>> orderBy)
34+
=> condition
3535
? source.OrderBy(orderBy)
3636
: source;
3737

38-
public static IQueryable<TSource> ConditionalOrderBy<TSource, TKey>(this IQueryable<TSource> source, bool condition, Expression<Func<TSource, TKey>> orderBy, IComparer<TKey>? comparer) =>
39-
condition
38+
public static IQueryable<TSource> ConditionalOrderBy<TSource, TKey>(this IQueryable<TSource> source, bool condition, Expression<Func<TSource, TKey>> orderBy, IComparer<TKey>? comparer)
39+
=> condition
4040
? source.OrderBy(orderBy, comparer)
4141
: source;
4242

43-
public static IQueryable<TSource> ConditionalOrderByNotNull<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>>? orderBy) =>
44-
orderBy is not null
43+
public static IQueryable<TSource> ConditionalOrderByNotNull<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>>? orderBy)
44+
=> orderBy is not null
4545
? source.OrderBy(orderBy)
4646
: source;
4747

4848

49-
public static IQueryable<TSource> ConditionalQueryable<TSource>(this IQueryable<TSource> source, bool condition, Func<IQueryable<TSource>, IQueryable<TSource>> queryableFunc) =>
50-
condition
49+
public static IQueryable<T> ConditionalQueryable<T>(this IQueryable<T> source, bool condition, Func<IQueryable<T>, IQueryable<T>> queryableFunc)
50+
=> condition
5151
? queryableFunc(source)
5252
: source;
53+
54+
public static IQueryable<T> ConditionalReverse<T>(this IQueryable<T> source, bool reverse)
55+
=> reverse
56+
? source.Reverse()
57+
: source;
5358
}

src/CodeOfChaos.Extensions.Serilog/CodeOfChaos.Extensions.Serilog.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<!-- Main package name -->
99
<PackageId>CodeOfChaos.Extensions.Serilog</PackageId>
10-
<Version>0.26.0</Version>
10+
<Version>0.27.0</Version>
1111
<Authors>Anna Sas</Authors>
1212
<Description>A Library of broadly used extensions for Serilog</Description>
1313
<PackageProjectUrl>https://github.com/code-of-chaos/cs-code_of_chaos-extensions</PackageProjectUrl>

src/CodeOfChaos.Extensions/CodeOfChaos.Extensions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<!-- Main package name -->
1010
<PackageId>CodeOfChaos.Extensions</PackageId>
11-
<Version>0.26.0</Version>
11+
<Version>0.27.0</Version>
1212
<Authors>Anna Sas</Authors>
1313
<Description>A Library of broadly used extensions for dotnet in general</Description>
1414
<PackageProjectUrl>https://github.com/code-of-chaos/cs-code_of_chaos-extensions</PackageProjectUrl>

0 commit comments

Comments
 (0)