在研究了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.
更多推荐
发布评论