My ObjectDataSource cannot view Methods in BLL RRS feed

  • Question

  • User360451555 posted

    Hello and how are you doin, i have my BLL aligned as below

    using System;
    using InfoDataSetTableAdapters;

    public class StudentBLL
        private StudentTableAdapter _studentAdapter = null;
        protected StudentTableAdapter Adapter
                if (_studentAdapter == null)
                    _studentAdapter = new StudentTableAdapter();

                return _studentAdapter;

        [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
        private InfoDataSet.StudentDataTable GetStudents()
            return Adapter.GetStudents();


    When i go to my ObjectDataSource to select the method, its not in the dropdownlist. I wonder what problem is in my BLL

    Monday, May 9, 2011 4:15 PM


  • User-1360095595 posted

    Try changing the method to be public insteadd of private.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, May 9, 2011 6:42 PM