ParentRows始终为null [英] ParentRows are always null

查看:147
本文介绍了ParentRows始终为null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我有一个包含许多关系的大数据集.当我尝试使用文章的DataRow对象时,我有一个Property Category_ID和一个生成的Property CategoryRow.但是,每当我访问CategoryRow时,它始终为null.当我尝试使用GetParentRow(DataRelation)时,关系和键是否存在于另一个表中也总是为null.我在做什么错?

In my Project i have a Big Data Set with many Relations. And when i try to use the DataRow Object of an Article i have a Property Category_ID and a generated Property CategoryRow. But whenever I access the CategoryRow it is always null. When I try to use the GetParentRow(DataRelation) it is also always null whether the relation and the key exists in the other table. What I''m doing wrong?

推荐答案

我们没什么可继续的.向我们展示用于创建和初始化这些对象的代码,然后我们可能会为您提供一些帮助.
There isn''t a lot for us to go on. Show us the code you use to create and initialize these objects and we maybe then can provide you with some help.


这篇关于ParentRows始终为null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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