.rdlc associated with an object data source in a three-layer application

I have the following situation: I have a Reporting level (stand-alone) in an asp.net application (not a website, this means that NO App_Code folder exists), and I just want to create a Data Data Source object to take an object into a separate layer (say, from the data access level), and then use this object data source to create a report, I spent all day on this, a lot of work and articles on the Internet, but does not mention what I really want to do, any answer will be appriciated ...

to make it clearer here, suppose the following:

i has a solution with subsequent layers,

  • interface
  • Reporting (does not have an object "Employees") just a link
  • Business logic
  • Data Access Level (Employees → GetEmployees (),

all that I need, as mentioned above, I want to create an object data source from the Reporting level, take the Employee object from DAL, and then use its GetEmployees method, which will be added to the report, I think it is now clearer, since at the Reporting level, there is also no App_Code folder.

+1
source share
1 answer

The way I did this was to create a class that has a property of type List. I have a LoadReport method (params ......) in this class where I would call GetEmployess to populate my property.

, i. List, .

VS2008, VS2010

0

Source: https://habr.com/ru/post/1569347/


All Articles