linqPlusPlus 1.4.5
See the version list below for details.
dotnet add package linqPlusPlus --version 1.4.5
NuGet\Install-Package linqPlusPlus -Version 1.4.5
<PackageReference Include="linqPlusPlus" Version="1.4.5" />
paket add linqPlusPlus --version 1.4.5
#r "nuget: linqPlusPlus, 1.4.5"
// Install linqPlusPlus as a Cake Addin #addin nuget:?package=linqPlusPlus&version=1.4.5 // Install linqPlusPlus as a Cake Tool #tool nuget:?package=linqPlusPlus&version=1.4.5
Linq plus plus
lightweight extensions to make your every day life easier
Dictionary<string, object> ToDictionary(this object source)
this method converts any objects to a dictionary, where the property name is key. use with care bcz of boxing/unboxing.
bool HasContent(this string str)
check if string is null or empty or whith space.
bool IfNull(this object obj, Func<bool> nullPart, Func<bool> notNullPart)
check if an object is null and then apply the condition, much like IF(_,+,*) in vb.
use it in expressions because null propagation is nut supported there
dynamic DeselectObject<TSource, Tkey>(this TSource source, Expression<Func<TSource, Tkey>> deselect)
introduce some field to not includ in final result. for example you can: userObj.deselect((user n)=> n.password) to exclude only password from result.
this method return a dynamic object, much usefull in KISS apis.
IEnumerable<dynamic> Deselect<TSource, Tkey>(this IEnumerable<TSource> source, Expression<Func<TSource, Tkey>> deselect)
much like the other one above, but on collections.
public static IQueryable<TEntity> Track<TEntity>(this IQueryable<TEntity> query, bool track = true)
Parameterized tracking, more control less code.
public static string? ExceptionStringifier(this Exception? exc)
Easy way to stringfy exceptions without loosing details and serialization complications
Disclaimer
the term linq plus plus has chosen to resemble how this package is easy to use and fimiliar.
there is no relation between this package and official linq library 😃
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- JsonFormatterPlus (>= 1.0.2)
- Microsoft.EntityFrameworkCore (>= 6.0.5)
- Newtonsoft.Json (>= 13.0.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on linqPlusPlus:
Package | Downloads |
---|---|
QueDuler.Broker.Kafka
Package Description |
|
Kavenegar.Unofficial
روش ارتباطی مدرن با کاوه نگار و سازگاری کامل با دات نت کور |
GitHub repositories
This package is not used by any popular GitHub repositories.