We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

ReportDesigner Entity Framework

Thread ID:

Created:

Updated:

Platform:

Replies:

131257 Jun 30,2017 02:12 PM Jul 5,2017 12:32 AM WPF 5
loading
Tags: ReportDesigner
Forstmeier Peter
Asked On June 30, 2017 02:12 PM

Hi
the next question.
I have my entities as follows.

public class WorkOrderDto:BaseDto{

public WorkOrderDto() {

BOM = new List<BillOfMaterialDto>();

}

//more propertys

public ICollection<BillOfMaterialDto> BOM {get;set;}

}

public class BillOfMaterialDto :BaseDto {

// more propertys

}

As you can see i have a WorkOrder with a one to many relation to BillOMaterialDto

How can i set this in the DataSet for reporting?

Thanks in advance

Peter






Vinoth Srinivasan [Syncfusion]
Replied On July 3, 2017 08:47 AM

Hi Forstmeier, 
 
Thanks for your interest in Syncfusion Components. 
 
The Report Data Panel shows only the properties of currently selected class and it does not shows properties in nested tree structure and same behavior used in MS report data panel. In your report “WorkOrderDto” dataset contain a property of type “BillOfMaterialDto” class, its inner properties will not be displayed in the report data panel. The property information’s are stored in the report, so you can bind a data collection with nested object types. We have prepared a sample based on this and it can be downloaded from the following location. 
 
 
If we misunderstood your requirement then could you please modify the sample or share some additional details regarding your requirement. 
 
Regards, 
Vinoth S. 


Forstmeier Peter
Replied On July 3, 2017 01:58 PM

Hi,

that's exacltly what i'm looking for.

Another small question, what is the reasoen for the Serializable Attribute?

Thanks again

Peter


Vinoth Srinivasan [Syncfusion]
Replied On July 4, 2017 10:06 AM

Hi Forstmeier, 
 
The serializable property required to avoid the problem in retrieving the value for nested objects with user defined type. Every user type in the class must be serializable, and any user type in a property of a user type must be serializable so “Serializable” property used in the sample, refer the below MSDN online links for more details. 
 
Regards, 
Vinoth S. 


Forstmeier Peter
Replied On July 4, 2017 02:01 PM

Hi,

a very good Explanation.

You can close these request.

Thanks a lot

Peter


Vinoth Srinivasan [Syncfusion]
Replied On July 5, 2017 12:32 AM

Hi Forstmeier, 

Thanks for your update. Please let us know if you require any further assistance on this. 

Regards, 
Vinoth S. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;