.net c#将实体的自定义集合绑定到水晶报表

Binding a custom collection of an entity to crystal report
2021-06-10
  •  译文(汉语)
  •  原文(英语)
public class Leads
{
        public int Id { get; set; }
        public string Npi { get; set; }
        public string LegalBusinessName { get; set; }
        public List<Calls> Calls { get; set; }


}

我正在尝试将List <Leads>绑定到水晶报表.当我注释Calls属性(这是另一个称为"Calls"的实体的集合)时,水晶报表将为我显示数据.在Crystal报表中甚至可以绑定具有其他集合属性的实体的集合.

速聊1:
如果下面的答案是正确的,请标记它.
解决过程1

您必须为另一个集合创建子报表.并将此子报表添加到您的主报表中.

速聊1:
您的回答确实对我有所帮助,但是我也想知道这是否是将实体集合(具有集合属性)绑定到Crystal Report的唯一方法,因为如果添加子报告,那么我就不会利用现有的"Calls"属性在潜在客户实体中.
public class Leads
{
        public int Id { get; set; }
        public string Npi { get; set; }
        public string LegalBusinessName { get; set; }
        public List<Calls> Calls { get; set; }


}

I am trying to bind List<Leads> to crystal report. The crystal report shows me data when I comment the Calls property (which is a collection of another entity called "Calls"). Is it even possible in crystal reports to bind a collection of an entity having another collection property.

Talk1:
if below answer is correct then mark it please.
Solutions1

You have to create sub-report for another collection. and add this sub-report to your main report.

Talk1:
Your answer did help me but I am also wondering if this is the only way where we can bind a collection of entity (having a collection property) to crystal report because if I add sub report then I am not utilizing the existing "Calls" property in the Leads entity.
转载于:https://stackoverflow.com/questions/19095535/binding-a-custom-collection-of-an-entity-to-crystal-report

本人是.net程序员,因为英语不行,使用工具翻译,希望对有需要的人有所帮助
如果本文质量不好,还请谅解,毕竟这些操作还是比较费时的,英语较好的可以看原文

留言回复
我们只提供高质量资源,素材,源码,坚持 下了就能用 原则,让客户花了钱觉得值
上班时间 : 周一至周五9:00-17:30 期待您的加入