Geo J Thachankarygeothachankary.hashnode.dev·Sep 13, 2024POCO to Dictionary Conversion Techniques in C#Recently in one of my projects, I had to extract properties and values of a C# object to send as key value pairs to a third party REST API. Instead of manually extracting each property, I wanted a way to convert a Plain Old CLR Object (POCO) into a D...Discuss·129 readsC#
Opaluwa Emidowo-ojotech-on-diapers.hashnode.dev·Jun 28, 2024Ultimate Guide to Mastering LINQ in C#Welcome to the second article in the "Mastering C#" series. In this article, we will explore LINQ (Language Integrated Query), a powerful feature in .NET. LINQ allows you to write queries directly in C# and Visual Basic (.NET) using familiar syntax. ...Discuss·20 likes·32 readsC#
Sam Ferreeblog.samferree.dev·Jun 7, 2024IEnumerable, It's Not a Collection.IEnumerable<T> has become one of the most popular ways not only to manipulate collections, but to pass them around as a read only structure. The power of LINQ and the safety of read-only immutable structures make it an excellent choice when modeling ...Discuss·2 likes·33 readsC#
consoleGuywab4136.hashnode.dev·May 4, 2024LINQ in C#selalunya kita akan guna loop dan condition with loop untuk process data yang dari mana2. contohnya dari List. tapi cara ni leceh dia jadi panjang kat foreach loop tu. sebenarnya aku rasa tak best heheh. List<string> BookList = new List<s...DiscussC#
Kate Brownkateeliza29.hashnode.dev·Apr 28, 2024My Top 5 Most Used LINQ Methods in C#What is LINQ? LINQ is 'Language Integrated Query'. LINQ queries allow you to extract data from enumerables (lists, arrays, etc.) in a similar way to how you'd query a database with SQL. This was introduced in 2007, so it's been around for a while, a...Discuss·74 readslinq
Jan Doubekmydevtricks.com·Dec 2, 2023Exploring LINQ in .NET 6: Mastering DistinctBy and MoreSince the inception of LINQ, methods suffixed with 'By' have played an important role in simplifying LINQ operations by introducing an additional 'selector' parameter. A typical example is the OrderBy method. Without the selector parameter, even a st...Discuss·1.1K readsLINQ gemsdotnet
Rahul Prabhurahulwrites.hashnode.dev·Oct 13, 2023Language Integrated Query 101Introduction In the ever-evolving world of software development, we all aspire to craft elegant solutions that not only solve problems but do so with utmost efficiency. Microsoft's LINQ has transformed the way we work with data, serving as a valuable...Discuss·13 likes·133 readsMicrosoft
Muhammad Waseemmwaseemzakir.hashnode.dev·Oct 13, 2023EP 2 : Tips to write better LINQ QueriesUse of AsNoTracking For read only queries e.g. (GetAll,GetById etc.) use AsNoTracking , when we use it entities are not tracked for change so it brings data more speedily. Include necessary Entities and Columns While retrieving data from multiple ta...Discuss.NET Booster WeeklyC#
Hooman PegahmehrforApplication Supportappsupport.academy·Aug 8, 2023Tiny PowerShell Project 6 - LiteDB and LINQ QueriesAll tutorials that I found online gave outdated instructions on how to download LiteDB for PowerShell. Learning how to download and set it up alone can make up for a tiny project. First, let's see how to download the LiteDB.dll file manually: Visit ...Discuss·1 like·113 readsTiny PowerShell Projectslinq
Tim Hiltontjhilton.hashnode.dev·Jul 10, 2023Resolving TargetException "Non-static method requires a target" in LINQI recently came across a situation in which a seemingly innocuous piece of LINQ threw a very opaque exception when used with Entity Framework 6. The exception was this: Call Stack: System.Reflection.TargetException: at System.Reflection.RuntimeMetho...Discuss·48 readsCode & technical writingentity framework