none
rdlc : Datasource missing from the list of available datasets RRS feed

  • Question

  • Trying to add an object collection as a datasource to a report file.
    Outcome : The *.datasource file gets added to the solution, but not to the list of available datasets on the report wizard.
       
    Note:
       
    1. There are around 20 such datasources {classOne,classTwo,...}, and the issue is with only 3/20.
       
    2. Entities is implemented to hold a collection of Entity. Its done using a simple List<>.
       
    3.  The class includes primitive data types, as mentioned as solution in one of the threads.
       
           
            using System;
            using System.Data;
            using System.Collections.Generic;
            using System.Linq;
            using MMC.Data;
           
           
           
            namespace MMC.Business
            {
                public class classOne : Entity<classOne>
                {
                String _name;
                [Data("Name")]
                public String Name { get; set; }
           
                String _address;
                [Data("Address")]
                public String Address { get; set; }   
       
            }
           
                public class classOneCollection : Entities<classOneCollection, classOne>
                {
                    ....
                }
            }

     

    Thursday, June 26, 2014 7:47 AM