用于POCO或泛型类的LINQ to Objects [关闭](LINQ to Objects for POCO or generic classes [closed])

编程入门 行业动态 更新时间:2024-10-22 08:20:30
用于POCO或泛型类的LINQ to Objects [关闭](LINQ to Objects for POCO or generic classes [closed])

在研究了LINQ to DataSets之后 ,我记得我的数据存在于POCO类和/或类型<T>的通用列表或特定对象的通用类中。

有了这些信息,如果我想在这些类型的对象上使用LINQ,我想我会使用LINQ to Objects而不是LINQ to DataSets(尽管数据集实际上只是一个类的封面)。

我假设这是正确的吗?

如果是这样,有没有人有关于如何使用LINQ专门使用这些对象的任何链接?

After doing research on LINQ to DataSets, I remembered that my data resides in POCO classes and or Generic Lists of type <T> or Generic classes for a specific object.

With this information, if I want to use LINQ on those type of objects, I imagine I would use LINQ to Objects and not LINQ to DataSets (even though a dataset is really just a class under the covers).

Am I correct in assuming this?

If so, does anyone have any links on how to use LINQ specifically with these kind of objects?

最满意答案

我建议你下载LINQPad 。 没有智能感知它是免费的,但值得付出代价。 它有很多LINQ示例,您无需构建项目即可轻松运行。

I would recommend you download LINQPad. It's free without IntelliSense, but it is worth paying for it. It has a lot of LINQ samples that you can easily run without building a project.

更多推荐

本文发布于:2023-08-04 07:31:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1413091.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:LINQ   泛型类   POCO   Objects   closed

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!