The previous article describes the basic development of client reports. This article describes how to customize the development data source for a client report.
Through the previous article we know that you can add a data source to a report by using a dataset, which is relatively simple in terms of UI manipulation. In addition, we can provide data sources for client reports in other ways, making the data organization more flexible. The following describes how to provide a data source for a report through project code.
Review the third SSRS report we established, the structure of its data set:
First, based on the previous ASP.net project, add a class that will have exactly the same structure as the one in the report dataset above. Right key item name then Add->new item ...
Select Code on the left, select class on the right, and add a class to the project.