Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the difference between Linq and dLinq

Shulou Source: shulou.com Published: 2022-06-02 09:02:53 10月03日 Update

This article introduces the relevant knowledge of "what is the difference between Linq and dLinq". In the operation process of actual cases, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

Difference between Linq and dLinq

Linq is a very similar programming language to SQL, but it seems to be very different from SQL statements, but it is very similar. Look at the code written in VS2008 below.

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Demo1 { class Demo1 { static void Main() { string[] names = { "Zhang San", "Li Si", "Wang Wu", "Xiao Wu", "Xiao Tang", "abcdefg" }; IEnumerable q = from sql in names //where sql === "Xiao Wu" orderby select sql.ToUpper(); foreach (string item in q) Console.WriteLine(item); Console.ReadLine(); } } }

Look from orderby select These are almost like SQL, but in a different order. Using the IEnumerable generic in Demo1, returns results from array names to dataset q, sql variables are array names element values, sql variables are declared in the form of in names... Now get a good taste of Linq's new approach to development. What we're going to learn next is going to revolve around dLinq. Linq and dLinq differ in that Linq operates on memory, while dLinq operates on databases.

"What is the difference between Linq and dLinq" is introduced here. Thank you for reading it. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

Tags: Learning next content variables data arrays more knowledge Xiao Wu different practical large similar successful learning columns code elements dilemmas practical internal Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei MySQL macOS Xiaomi Shulou Technology