在业务逻辑中列出 [英] List in business logic

查看:79
本文介绍了在业务逻辑中列出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想输入子主题subjectId
以显示所有父主题.
在C#中,
SubjectId本身就是parentsubjectId

Hi ,
I want to display all parent subject upto root by entering child subjectId

in C# ,
SubjectId is itself a parentsubjectId

推荐答案

如何在您的应用程序中表示数据?
如果您正在使用具有关系的数据集,则可以递归使用 DataRow.GetParentRow ,直到没有更多的父行为止.
How the data is represented in your application?.
If you are using Dataset with relations then you can use DataRow.GetParentRow recursively until there is no more parent row.


这篇关于在业务逻辑中列出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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