数据集中表的内部表 [英] Inner tables of tables in dataset

查看:65
本文介绍了数据集中表的内部表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个表很少的数据集.这些表在内部有另一个表.我需要从表和表的内部表中获取数据.

I''ve a dataset which has few tables. These tables internally have another table. I need to get data from tables and the inner tables of the tables. How can I do this?

推荐答案

如果将内部表存储在data列中,我认为这样做毫无意义.数据集中的表并不意味着要嵌套.而是添加适当数量的表,并使用 DataRelation [
If you''re storing the inner tables inside a data column, I see no point in doing that. Tables in datasets are not meant to be nested. Instead add proper amount of tables and use DataRelation[^] between the tables to define the references between data.




请检查
NextResult().

希望对您有帮助,

谢谢
-amit.
Hi,

Please check NextResult().

hope this will help you,

thanks
-amit.


我认为您的意思是在ORM中导航,例如Customers.Orders.OrderItem

如果是这样,那么您应该学习如何使用ORM,例如如何使用实体框架.

阅读这些资源,它们将为您提供帮助:
http://www.codeguru. com/csharp/csharp/net30/print.php/c15489/ADONET-Entity-Framework-Tutorial-and-Basics.htm [ http://stackoverflow.com/questions/62110/ado-net-entity-framework-tutorials [^ ]

http://msdn.microsoft.com/en-us/library/bb399182.aspx [ ^ ]

希望对您有所帮助.
I think you mean navigation in ORM, for example Customers.Orders.OrderItem

If so then you should learn how to use an ORM for example how to use Entity Framework.

Read these resources and they will help you :
http://www.codeguru.com/csharp/csharp/net30/print.php/c15489/ADONET-Entity-Framework-Tutorial-and-Basics.htm[^]

http://stackoverflow.com/questions/62110/ado-net-entity-framework-tutorials[^]

http://msdn.microsoft.com/en-us/library/bb399182.aspx[^]

Hope it helps.


这篇关于数据集中表的内部表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆