k****n 发帖数: 52 | 1 类似SQL或者任何方式的query? 有可能对在memory的数据作SQL query吗?多谢! |
v******n 发帖数: 421 | 2 C# 3.0~
var qq = from i in new int[] { 1, 2, 3, 4 }
where i.ToString().StartsWith("2")
select new { i, str = i.ToString() };
【在 k****n 的大作中提到】 : 类似SQL或者任何方式的query? 有可能对在memory的数据作SQL query吗?多谢!
|
c**t 发帖数: 2744 | 3 .Net 3.0
【在 k****n 的大作中提到】 : 类似SQL或者任何方式的query? 有可能对在memory的数据作SQL query吗?多谢!
|
l*****a 发帖数: 166 | 4 1。1 和 2。0 都可以阿。可以用dataview的rowfilter或select method吧?记得不太
清楚了。
看看参考书。
【在 k****n 的大作中提到】 : 类似SQL或者任何方式的query? 有可能对在memory的数据作SQL query吗?多谢!
|
k****n 发帖数: 52 | 5 I have several datatables which are similar to the tables in a relational
database. Can I select/join datatables? Many thanks!
【在 l*****a 的大作中提到】 : 1。1 和 2。0 都可以阿。可以用dataview的rowfilter或select method吧?记得不太 : 清楚了。 : 看看参考书。
|
c**t 发帖数: 2744 | 6 DataSet is your friend. You can think DataSet is the in-memory database, you
may have "linked tables" from different data sources; you may have your own
index, pk...
【在 k****n 的大作中提到】 : I have several datatables which are similar to the tables in a relational : database. Can I select/join datatables? Many thanks!
|
f*****e 发帖数: 5177 | 7 there is no direct solution in 2.0
but you can use table relations to act as "join"
【在 k****n 的大作中提到】 : I have several datatables which are similar to the tables in a relational : database. Can I select/join datatables? Many thanks!
|
j********g 发帖数: 88 | 8 你可以自己在内存里面建一个DataTable,AddRow之后自己查询 |