Posted 29 June 2022, 7:08 am ESTHi. I am trying to create the section report in my .NET Core 6.0 (C#) project. I need to use an object data source, I'd like to bind the collection of objects retrieved from Entity Framework to my section report. Is that supported? If yes, could I please have a piece of code sample? Many thanks in advance.
Section report with object data source
Posted by: skovalen on 29 June 2022, 7:08 am EST
Marked as Answer
Replied 29 June 2022, 5:54 pm ESTHi Sergey,
>> I'd like to bind the collection of objects retrieved from Entity Framework to my section report. Is that supported?
Yes, You can bind your report to a collection of objects retrieved from Entity Framework. Please refer to the following page of our documentation:
In the above page you can see we are binding an Enumerator to the report similarly you can bind other object types like List or Array.
Based on the above approach I have created a sample application and shared it along with. Instead of using Record class in the sample you can use any other object class that you are retrieving from the Entity Framework.
Replied 30 June 2022, 12:27 am ESTHi Akshay, thank you very much for your prompt response. Would you please be so kind to clarify the sentence "I have created a sample application and shared it along with"? I mean could you provide me a link where I can download the source code of sample application you created? Thank you again for your help.