Stimulsoft中具有自定义业务对象的主从报告 [英] Master-detail report with custom business objects in Stimulsoft
问题描述
我正在研究一个使用自定义ORM的项目.每个模型都是一个简单的POCO,可从数据库中填充.
I am working on a project, which uses a custom ORM. Each model is a simple POCO which is populated from the database.
现在,我需要使用其中一些类在Stimulsoft Reports和
Now, I need to use some of these classes to create a master-detail report in Stimulsoft Reports, and I am following this guide. But instead of using ADO.NET entity model, I use our own ORM.
问题是,在本文的第5步中,Stimulsoft在 Business Object的子代框中无法识别我的业务对象,并显示了一个空列表.
The problem is, at step 5 of the article, Stimulsoft does not recognize my business objects in the Child of Business Object box and shows an empty list.
我认为,问题出在我的模型之间的关系上.这是我们ORM中一个关系的示例:
I think, the problem is with the relations between my models. Here is an example of a relation in our ORM:
public class Group
{
public int Id;
// Other properties
public List<Person> People { get; set; }
}
public class Person
{
public int Id;
// Other properties
public int GroupId;
}
推荐答案
这是太旧的说明了.尝试将两个DataBand与您的业务对象一起添加.
This is too old instruction. Try to add two DataBand with your Business Objects.
这篇关于Stimulsoft中具有自定义业务对象的主从报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!