I'm trying to create a local SQL Server Reporting Services report (.rdlc file) and connect this report to some data sets that I generate in code (no direct SQL Server connection).
I create a ReportDataProvider class with some instance methods that return IList<T> for various sets of criteria - but I cannot seem to find a way to make those data providing methods show up in the Reporting Services designer inside Visual Studio 2013.
When I look at the dialog that appears after clicking on Add DataSet on the Datasets node in the Report Data explorer window, I see a ton of my classes listed there - but not my data provider class.

Is there anything special I need to be aware of (make the class static? Decorate it with some attribute?) in order for it to show up in that dropdown list of possible data sources? I tried various things, but have failed to find any way to get this to work properly...
I do some research, and try different ways to add classes. Unfortunatly it happends that you can't see static classes in this designer. I tried different ways but no luck.
For non static classes this manual works for me every time, even with Interfaces like IList, but i don't represent it here:
I using VS 2013 Ultimate Update 2.
This is my classes:
using System.Collections.Generic;
namespace YourReportNamespace
{
    public class ReportClass
    {
        public List<string> TestReportData()
        {
            return new List<string>();
        }
        public static List<string> StaticTestReportData()
        {
            return new List<string>();
        }
    }
    public class ReportWithFieldsClass 
    {
        private List<string> Data = new List<string>();
        public List<string> TestReportData()
        {
            return Data;
        }
        public List<string> TestReportData2()
        {
            return Data;
        }
        public static List<string> StaticTestReportData()
        {
            return new List<string>();
        }
    }
    public static class ReportWithFieldsStaticClass //This class will not appear
    {
        private static List<string> Data = new List<string>();
        public static List<string> StaticTestReportDataFromField()
        {
            return Data;
        }
        public static List<string> StaticTestReportData()
        {
            return new List<string>();
        }
    }
}
This is what i got in designer after i pass through manual:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With