Using Object data source in ASP.NET 4 ReportViewer

前端 未结 5 1372
星月不相逢
星月不相逢 2021-01-05 05:23

OK, I think I\'m getting mad here... I thought this should be super simple, but I just can\'t figure out how to do that.

This is what I\'m trying to do: I want to cr

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-05 05:48

    I found this blog very helpful.
    When you create a new datasource for your rdlc, in the Dataset Properties dialog:
    1) In the Data source drop down, select the namespace that contains the class which contains the public method (see #2).
    2) In the Available datasets drop down, select the public method that returns an IQueryable of your business objects.

提交回复
热议问题