Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the difference between Linq and dLinq

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report