In .NET 5, there are only two equivalent foreach
loops happening behind the scenes. However in .NET Framework, there’s
an extra one happening, which means nine iterations happen, instead of
six.
میشه گفت یکی از advancedترین قسمتهای دات نت، مفهوم Expression Tree و کلاس Expression هست که یه جورایی قلب IQueryable رو هم تشکیل میده
شاید نهایت استفاده افراد، کار با <<Expression<Func برای شرطهای predicate بر روی متد Where و یا selector برای متد Select باشه
ولی Expression خیلی بزرگتر از اینهاست
توضیح مفهوم Expression Tree طولانیه اگه میخواین بیشتر باهاش اشنا بشین قبلا اینجا یه پست نوشتم براش.
لینک اشتراک جاری هم یکی از بهترین مقالاتی که این مفهوم رو به خوبی به همراه مثال توضیح داده
چگونه رشتهی JSON زیر را تبدیل به یک عبارت LINQ کنیم؟ (ساخت یک گزارش ساز پویا)
{ "condition": "and", "rules": [ { "label": "Category", "field": "Category", "operator": "in", "type": "string", "value": [ "Clothing" ] }, { "condition": "or", "rules": [ { "label": "TransactionType", "field": "TransactionType", "operator": "equal", "type": "boolean", "value": "income" }, { "label": "PaymentMode", "field": "PaymentMode", "operator": "equal", "type": "string", "value": "Cash" } ] }, { "label": "Amount", "field": "Amount", "operator": "equal", "type": "number", "value": 10 } ] }
The tutorials in this repository are:
LINQPad is a powerful testing tool for all .NET developers that can help them deliver solutions in less time. In Getting the Most from LINQPad Succinctly, returning Succinctly series author José Roberto Olivas Mendoza lays out different ways to extend the functionality built into LINQPad. In this ebook, you’ll learn how to use LINQPad to query Entity Framework models in Visual Studio, how to work with the LINQPad command-line utility, how to write your own extensions and visualizers, and how to write custom data context drivers.
-
A Quick Tour of LINQPad
-
LINQPad and Entity Framework
-
LINQPad Scripting
-
LINQPad Extensibility
-
Custom Data Context Drivers
High performance Linq-style extension methods for arrays and lists.
متدهای کمکی Linq با پرفرمنس بالا
High performance Linq-style extension methods that use System.Numerics SIMD for arrays and lists.
متدهای کمکی Linq با پرفرمنس بالا با استفاده از تکنولوژی SIMD و ^
Provides multithreaded Linq-Like extensions for arrays and lists.
متدهای کمکی Linq با پرفرمنس بالا با استفاده از پردازش موازی/Multi-Threading
High performance Linq-style extension methods that are multithreaded and use System.Numerics SIMD for arrays and lists.
متدهای کمکی Linq با پرفرمنس بالا با استفاده از تکنولوژی SIMD و پردازش موازی/Multi-Threading