In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you "how to solve the LINQ generic dataset problem", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to solve the LINQ generic dataset problem" this article.
A query is an expression that retrieves data from a data source. The query is expressed in a dedicated query language. Over time, different languages have been developed for different types of data sources, such as SQL for relational databases and XQuery for XML. This requires application developers to learn a new query language for each supported data source or data format.
Language Integrated query (LINQ) simplifies this situation by providing a consistent model for using data across a variety of data sources and data formats. Objects are always used in LINQ queries. The same basic encoding scheme is used when querying and transforming XML documents, SQL databases, ADO.NET datasets and entities, data in the. NET Framework collection, and any other source or format data with the corresponding LINQ provider
Define a code that returns a LINQ generic dataset:
Using System
Using System.Collections.Generic
Namespace BlueCube.BusinessLogic
{
/ / /
/ Encapsulates execution result contains whether the
Execution is successful and what messages the invoker will receive.
/ / /
Public class ExecutionResult
{
/ / /
/ True as execution is successful. False as failed.
/ / /
Public bool Success
{
Get
Set
}
Private List _ Messages = null
/ / /
/ Stores message list
/ / /
Public List Messages
{
Get
{
/ / Initialize message list if it is null
If (_ Messages = = null)
{
_ Messages = new List ()
}
Return _ Messages
}
Set
{
/ / Clear existed message list then add new list from value
If (_ Messages! = null)
{
_ Messages.Clear ()
Foreach (string message in value)
{
_ Messages.Add (message)
}
}
Else
{
_ Messages = value
}
}
}
/ / /
/ Encapsulates the value if there is any return value during execution
/ / /
Public T ReturnValue
{
Get
Set
}
}
}
These are all the contents of the article "how to solve the problem of LINQ generic datasets". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.